READ

Read syntax diagramSkip visual syntax diagram
                        .-DATA.-.               
>>-RLS--READ--listname--+-------+--+--------+------------------><
                        '-stem.-'  '-(--UPD-'   

READ reads records from an RLS list.

Operands

listname
specifies the list identifier.
stem.
specifies the name of a stem. (A stem must end in a period.) See section Stems for more information. The default stem is DATA..
UPD
is a keyword that enqueues on a file for update.

Return codes

See the RLS command, section 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.



rvse583.html | Timestamp icon Last updated: Monday, 5 June 2017