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

GET statement

The GET statement is a STREAM input data transmission statement that can either:

For a stream input file, use the following syntax for the GET statement.

Read syntax diagramSkip visual syntax diagram>>-GET--+--------------------+--+--------------------+---------->
        '-FILE--(expression)-'  '-data-specification-'
 
>--+----------------------------+--+------------------------+--->
   '-COPY--+------------------+-'  '-SKIP--+--------------+-'
           '-(file-reference)-'            '-(expression)-'
 
>--;-----------------------------------------------------------><
 

The keywords can appear in any order. The data specification must appear unless the SKIP option is specified.

For transmission from a string, use this syntax for the GET statement.

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

If FILE or STRING option is not specified FILE(SYSIN) is assumed and SYSIN is implicitly declared FILE STREAM INPUT EXTERNAL.


Terms of use | Feedback

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