Anonymous написал(а):
Скажите команду или функцию, котороя возращает номер позиции символа
SEARCH f FOR g .
Additions:
1. ... ABBREVIATED
2. ...
STARTING AT n1
3. ...
ENDING AT n2
4. ... AND MARK
Effect
Searches the contents of f for the string in the field g. This string can have any of the following formats:
'str'
a character string (trailing spaces are ignored)
'.str.'
any character string between the periods
'*str'
a word ending with "str", including "str"
'str*'
a word beginning with "str", including "str"
...
The return code is set as follows:
SY-SUBRC = 0:
The search string g was found in the field f.
SY-FDPOS contains the offset of the found string or the found word within the field.
SY-SUBRC = 4:
The search string g was not found in the field f.