Command reference / ifs

REN

Rename Object

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: RNM For more information about integrated file system commands, see the Integrated file system topic collection in the IBM i Information Center at http://www.ibm.com/systems/i/infocenter/.

Allowed environments: *ALL. Positional parameters: 2.

Restrictions

Parameters

OBJ Object

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 topic collection in the Programming category in the IBM i Information Center at http://www.ibm.com/systems/i/infocenter/. Note: This parameter is Unicode-enabled. See "Unicode support in CL" in the CL topic collection in the Programming category in the IBM i Information Center at http://www.ibm.com/systems/i/infocenter/ for additional information.

Type
*CHAR
Required
Yes
Length
5000
Case
Mixed case

NEWOBJ New object

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. For more information on specifying path names, refer to "Object naming rules" in the CL topic collection in the Programming category in the IBM i Information Center at http://www.ibm.com/systems/i/infocenter/. Note: This parameter is Unicode-enabled. See "Unicode support in CL" in the CL topic collection in the Programming category in the IBM i Information Center at http://www.ibm.com/systems/i/infocenter/ for additional information.

Type
*CHAR
Required
Yes
Length
256
Case
Mixed case

Examples

RNM OBJ('DECEMBER-1994-MONTHLY-PAYROLL-FILE') NEWOBJ('JANUARY-1995-MONTHLY-PAYROLL-FILE')

Renaming an Object Link. This command renames a file named DECEMBER-1994-MONTHLY-PAYROLL-FILE to a file named JANUARY-1995-MONTHLY-PAYROLL-FILE.

IBM command documentation

Generated from os/cl/catalog/REN.json and os/cl/help/REN.json.