Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Rename Object (REN) command changes the name of an object in a directory.
This command is an alias for the Rename Object (RNM) command and can also be issued using the following alternative command names:
For more information about integrated file system commands, see the Integrated file system information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
OBJ | Object | Path name | Required, Positional 1 |
NEWOBJ | New object | Character value | Required, Positional 2 |
Top |
Specifies the path name of the object to be renamed.
For more information on specifying path names, refer to "Object naming rules" in the CL concepts and reference topic in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
Top |
Specifies the new name of the object to be renamed. This name cannot contain any directory qualifiers and is in the same directory containing the existing object.
Top |
The alternative command name for REN is RNM. The following examples use the alternative command name, but REN can be replaced directly for RNM in all of them.
Example 1: Renaming an Object Link
RNM OBJ('DECEMBER-1994-MONTHLY-PAYROLL-FILE') NEWOBJ('JANUARY-1995-MONTHLY-PAYROLL-FILE')
This command renames a file named DECEMBER-1994-MONTHLY-PAYROLL-FILE to a file named JANUARY-1995-MONTHLY-PAYROLL-FILE.
Top |
*ESCAPE Messages
Top |