DISKR

DISKR reads records from an RFS file.

Read syntax diagramSkip visual syntax diagram RFS DISKR fileid DATA.stem.

Operands

fileid
specifies the file identifier.
stem.
specifies the name of a stem. A stem must end in a period; see Stems. The default stem is DATA..

Return codes

See the RFS command, RFS.

Example

'RFS DISKR POOL1:\USERS\USER1\TEST.DATA DATA.'

This example stores the entire contents of the RFS file POOL1:\USERS\USER1\TEST.DATA in the DATA. REXX compound variable.

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