Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


Joining data items (STRING)

Use the STRING statement to join all or parts of several data items or literals into one data item. One STRING statement can take the place of several MOVE statements.

The STRING statement transfers data into a receiving data item in the order that you indicate. In the STRING statement you also specify:

The receiving data item must not be an edited item, or a display or national floating-point item. If the receiving data item has:

Only that portion of the receiving field into which data is written by the STRING statement is changed.

Example: STRING statement

related tasks
Handling errors in joining and splitting strings

related references
STRING statement (COBOL for Windows Language Reference)


Terms of use | Feedback

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