Return Codes
See the RFS command, section “RFS” on page 363.
Example
'CKFILE POOL1:\USERS\USER1\TEST.EXEC'
This example checks for a file called TEST.EXEC in the existing directory POOL1:\USERS\USER1.
COPY
 RFS COPY fileid1 fileid2 
COPY copies a file.
Operands
fileid1
specifies the source file identifier, it may be a fully or partially qualified directory and file identifier.
fileid2
specifies the target file identifier, it may be a fully or partially qualified directory and file identifier.
Note: If the target file (fileid2) already exists, the contents of fileid1 replaces it.
Return Codes
See the RFS command, section “RFS” on page 363.
Example
'RFS COPY POOL1:\USERS\USER1\TEST1.EXEC POOL1:\USERS\USER1\TEST2.EXEC'
This example copies TEST1.EXEC to TEST2.EXEC within the directory POOL1:\USERS\USER1.
DELETE
 RFS DELETE fileid 
DELETE deletes an RFS file.
Operands
fileid
specifies the name of the file to be deleted. This may be partially or fully qualified.
Return Codes
See the RFS command, section “RFS” on page 363.
Example
'RFS DELETE POOL1:\USERS\USER1\TEST1.EXEC'
This example deletes file TEST1.EXEC within directory POOL1:\USERS\USER1.
DISKR
 RFS DISKR
DATA.
fileid
stem.

File System
Chapter 19. REXX/CICS File System 261