IBM SC34-5764-01 Server User Manual


 
DISKR reads records from an RFS file.
Operands
fileid
specifies the file identifier.
stem.
specifies the name of a stem. (A stem must end in a period.) See section “Stems” on page 123 for
more information. The default stem is DATA..
Return Codes
See the RFS command, section “RFS” on page 363.
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.
DISKW
 RFS DISKW
DATA.
fileid
stem.

DISKW writes records to an RFS file from a stem. The file is overlaid with the data in the stem.
Operands
fileid
specifies the file identifier.
stem.
specifies the name of a stem. (A stem must end in a period.) See section “Stems” on page 123 for
more information. The default stem is DATA..
Return Codes
See the RFS command, section “RFS” on page 363.
Example
'RFS DISKW POOL1:\USERS\USER1\TEST.EXEC DATA.'
This example stores the contents of the DATA. REXX compound variable into the RFS file
POOL1:\USERS\USER1\TEST.EXEC.
Note
Set DATA.0 to the number of records to be written to the file.
GETDIR
 RFS GETDIR stem.
dirid

File System
262
CICS TS for VSE/ESA: REXX Guide