PUT statement
The PUT statement is a STREAM output data transmission statement
that can:
- Transmit values to a stream output file
- Assign values to a character variable.
Use the following syntax of the PUT statement when dealing with
stream output files.
 >>-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.
 >>-PUT STRING--(expression)--data-specification--;-------------><
|
|
This information center is powered by Eclipse technology. (http://www.eclipse.org)