COBOL Manual for TNS and TNS/R Programs

Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs522555-006
9-108
INSPECT TALLYING REPLACING
for-clause
CHARACTERS
specifies that any character in source-string that has not satisfied a
previous compare-string relation is counted, regardless of its value.
position
marks a beginning or ending point for an INSPECT scan cycle. A
CHARACTERS phrase, ALL phrase, or LEADING phrase can have a
single BEFORE phrase, a single AFTER phrase, or one BEFORE phrase
and one AFTER phrase in either order.
BEFORE
specifies that scanning is up to but not including the character or
characters matching delim-string. If INSPECT does not find
delim-string in source-string, it scans all of source-string.
AFTER
specifies that scanning starts at the position immediately following the
character or characters matching delim-string. If INSPECT does
not find delim-string in source-string, it does not scan
source-string .
INITIAL
is for documentation only and has no effect.
CHARACTERS
ALL
LEADING
compare-string
position
position
VST166.vsd
BEFORE
AFTER INITIAL
delim-string
VST167.vsd