COPY
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.
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.
