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

READ statement

The READ statement can be used with any INPUT or UPDATE file. It either transmits a record from the data set to the program variable or sets a pointer to the record in storage.

Read syntax diagramSkip visual syntax diagram>>-READ FILE--(file-reference)---------------------------------->
 
   .-IGNORE--(expression)------------------.
>--+---------------------------------------+--;----------------><
   +-INTO(ref)--+------------------+-------+
   |            +-KEY(expression)--+       |
   |            '-KEYTO(reference)-'       |
   '-SET(pointer-ref)-+------------------+-'
                      +-KEY(expression)--+
                      '-KEYTO(reference)-'
 

The keywords can appear in any order. A READ statement without an INTO, SET, or IGNORE option is equivalent to a READ with an IGNORE(1).


Terms of use | Feedback

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