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

Syntax of data-directed data

The stream associated with data-directed data transmission is in the form of a list of element assignments. The element assignments that have optionally signed constants, like variable names and equal signs, are in character or graphic form.

Read syntax diagramSkip visual syntax diagram   .-,-------------------------------------.
   | .-b---------------------------------. |
   V V                                   | |
>>-----element-variable-- = --data-value-+-+--;----------------><
 

On input, the element assignments can be separated by either a blank or a comma. Blanks can surround periods in qualified names, subscripts, subscript parentheses, and the assignment symbols. On output, the assignments are separated by a blank. For PRINT files, items are separated according to program tab settings.

Each data-value in the stream has one of the syntaxes described for list-directed transmission. For a description of list-directed transmission syntax, refer to Syntax of list-directed data.

The length of the data value in the stream is a function of the attributes declared for the variable and, because the name is also included, the length of the fully qualified subscripted name. The length for output items converted from coded arithmetic data, numeric character data, and bit-string data is the same as that for list-directed output data, and is governed by the rules for data conversion to character type as described in Data conversion.

Qualified names in the input stream must be fully qualified.

Interleaved subscripts cannot appear in qualified names in the stream. For example, assume that Y is declared as follows:

  declare 1 Y(5,5),
            2 A(10),
              3 B,
              3 C,
              3 D;

An element name has to appear in the stream as follows:

  Y.A.B(2,3,8)= 8.72

Terms of use | Feedback

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