Figure description: STRING statement
This figure illustrates the processing steps for the following STRING statement:
STRING ID-1 ID-2 DELIMITED BY ID-3
ID-4 ID-5 DELIMITED BY SIZE
INTO ID-7 WITH POINTER ID-8
END-STRING
See the following initial data values:
- ID-7, the output string, is a 21-character data item of category alphanumeric that contains all Z characters.
- Input strings are as follows:
- ID-1 contains 123*45
- ID-2 contains A*Bc
- ID-4 contains 6789*0
- ID-5 contains DE*FG
- ID-3, the delimiter field, contains one asterisk (*)
- ID-8, a counter, contains 01
The input strings are transferred into ID-7 in the order that they are coded in the STRING statement. The asterisk in ID-1 and ID-2 mark the end of data transfer from those strings. The asterisk is not transferred. The entire contents of ID-4 and ID-5 are transferred.
The following values result from processing the STRING statement:
- ID-7: 123A6789*0DE*FGZZZZZZ
- Pointer, ID-8: 16
End of figure description.