RENAME (Rename a File on a Remote System)

FTP client subcommand

REname originalname newname

originalname
The present name of the remote file.
newname
The new name of the remote file. If the file specified by newname already exists, the new file replaces it.

This example renames the file SPORTSCAR.BMP in directory IMAGES on optical volume PICTURES to CAR.BMP:

REN /QOPT/PICTURES/IMAGES/SPORTSCAR.BMP
 /QOPT/PICTURES/IMAGES/CAR.BMP
Note: On an iSeries™ server, you cannot rename a file to a different file system.
Related reference
File Transfer Protocol client syntax conventions