RENAME
RENAME renames an RFS file to a new name.
Operands
- fileid1
- specifies the source file identifier, it may be a fully or partially qualified directory and file identifier.
- fileid2
- specifies the source 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 RENAME POOL1:\USERS\USER1\TEST1.EXEC POOL1:\USERS\USER1\TEST2.EXEC'
This example renames the file POOL1:\USERS\USER1\TEST1.EXEC to POOL1:\USERS\USER1\TEST2.EXEC.
