Rational Developer for System z
COBOL for Windows, Version 7.5, Language Reference


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

The following are initial data values:

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:

End of figure description.


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)