RENAME

Restrictions

You cannot use this command for compatibilit y mode KSAM ￿les, because there are internal linkages between the key information and the data ￿les, however, you can use this command to rename KSAM MPE/iX ￿les.

Renaming spool ￿les

The RENAME command renames spool ￿les if y ou have access to them, but only for spool ￿les that are not link ed to the spooler prin t queues.

Examples

To change the name of a ￿le named OLDFILE to a ￿le named NEWFILE , enter:

:RENAME OLDFILE,NEWFILE

To change the lockword of the ￿le FILE2 from LOCKA to LOCKB , enter:

:RENAME FILE2/LOCKA,FILE2/LOCKB

To move a ￿le from GROUP1 to GROUP2 within the same accoun t, enter:

:RENAME MYFILE.GROUP1,MYFILE.GROUP2

To apply the command as sho wn above, you must have save access to the group named in the second parameter ( GROUP2 ). Also, both groups m ust reside in the system.

Related Commands

COPY

LISTFILE

LISTSPF

PURGE

MPE/iX Commands 2-205