COBOL Manual for TNS and TNS/R Programs
Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
9-109
INSPECT TALLYING REPLACING
delim-string
is the identifier of any type of elementary item with USAGE DISPLAY
or a nonnumeric literal. It can be a figurative constant that does not
include the keyword ALL, in which case it represents one character.
ALL
specifies that all occurrences of compare-string are tallied.
LEADING
specifies scanning for consecutive occurrences of compare-string
beginning at the current position within source-string.
compare-string
is the identifier of an elementary data item with USAGE DISPLAY or a
nonnumeric literal. It can be a figurative constant (except one beginning
with ALL), in which case it represents one character. The compare-
string is the character-string being sought.
replacing-phrase
absolute-replacement
CHARACTERS
specifies that any character in source-string can be replaced,
regardless of its value. If you use CHARACTERS, replace-string and
delim-string must each be one character in length.
replace-string
is the identifier of an elementary item with USAGE DISPLAY or a
nonnumeric literal. It can be a figurative constant that does not include the
keyword ALL, in which case it represents one character.
REPLACING absolute-replacement
matching-replacement
VST169.vsd
CHARACTERS BY replace-string
position
VST170.vsd