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

PUT statement

The PUT statement is a STREAM output data transmission statement that can:

Use the following syntax of the PUT statement when dealing with stream output files.

Read syntax diagramSkip visual syntax diagram>>-PUT--+------------------------+--+--------------------+------>
        '-FILE--(file-reference)-'  '-data-specification-'
 
>--+------------------------------+--;-------------------------><
   +-PAGE--+--------------------+-+
   |       '-LINE--(expression)-' |
   +-SKIP--+--------------+-------+
   |       '-(expression)-'       |
   '-LINE--(expression)-----------'
 

The keywords can appear in any order. The data specification can be omitted only if one of the control options (PAGE, SKIP, or LINE) appears.

For transmission to a character string, however, use this syntax of the PUT statement.

Read syntax diagramSkip visual syntax diagram>>-PUT STRING--(expression)--data-specification--;-------------><
 

Terms of use | Feedback

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