COBOL Manual for TNS/E Programs (H06.03+)

Procedure Division Verbs
HP COBOL Manual for TNS/E Programs520347-003
9-259
UNSTRING
delim-1
is the identifier of an alphanumeric data item or an alphanumeric literal. If it is a
figurative constant, it must represent a single character.
The delimiter delim-1 marks the end of a portion of the value of source. The
value that the unstring operation stores into a result item does not include the
value of delim-1.
ALL
causes the unstring operation to handle all consecutive occurrences of the value of
delim-2 as if they were only one occurrence of delim-2. Without ALL, the
unstring operation handles only the first occurrence of the value of delim-2 as
the delimiter.
delim-2
is the identifier of an alphanumeric data item or an alphanumeric literal. If it is a
figurative constant, it must represent a single character.
The delimiter delim-2 marks the end of a portion of the value of source. The
value that the unstring operation stores into a result item does not include the
value of delim-2.
result-list
result
specifies the identifier of an alphanumeric, alphabetic, or numeric DISPLAY
elementary data item into which the unstring operation copies characters from
source. If result identifies a numeric data item, the PICTURE clause that
describes it cannot contain any P s.
result cannot reference a special register.
An UNSTRING statement can have at most 127 result fields.
result
DELIMITER
IN
delimstore
VST233.vsd
COUNT
IN
count