Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

STRING

STRING returns a string that is the concatenation of all the elements of x.

Read syntax diagramSkip visual syntax diagram>>-STRING(x)---------------------------------------------------><
 
x
Aggregate or element reference.

STRING is restricted as follows:

The type of string returned has the same type as one of these base elements with these exceptions:

The following are valid STRING targets:

  dcl
    1 A,
      2 B  bit(8),
      2 C  bit(2),
      2 D  bit(8);

  dcl
    1 W,
      2 X  char(2),
      2 Y  pic'aa',
      2 Z  char(6);

  dcl
    1 W,
      2 X  char(2),
      2 Y  pic'99',
      2 Z char(6);

The following are invalid STRING targets:

  dcl
    1 A,
      2 B  bit(8) aligned,
      2 C  bit(2),
      2 D  bit(8) aligned;

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)