READ

READ reads records from an RLS list.

Read syntax diagramSkip visual syntax diagram RLS READ listname DATA.stem. (UPD

Operands

listname
specifies the list identifier.
stem.
specifies the name of a stem. A stem must end in a period; see Stems. The default stem is DATA..
UPD
is a keyword that enqueues on a file for update.

Return codes

See the RLS command RLS.

Example

'RLS READ \USERS\USER1\TEST.DATA DATA.'

This example stores the entire contents of the RLS list \USERS\USER1\TEST.DATA in the DATA. REXX compound variable.

Note: DATA.0 is set to the number of records read from the list. DATA.n contains the nth record read from the list.