CL Command Reference - RNMM

CL Command List > RNMM Reference

Description:

The Rename Member (RNMM) command changes the name of a specified file member. The member cannot be renamed while it is in use; other users can read and change records of other members in the file that contains the member being renamed. A member that is opened in the same job cannot be renamed.

Restrictions:

. You must have object management (*OBJMGT) authority for the file that contains the member that is to be renamed, and have update (*UPDATE) and execute (*EXECUTE) authorities for the library in which the file is located.

. This command is conditionally threadsafe. In multithreaded jobs, this command is not threadsafe and fails for Distributed Data Management (DDM) files of type *SNA.


Examples:

RNMM FILE(ELEMENT) MBR(LEAD) NEWMBR(GOLD)

This command renames member LEAD in file ELEMENT as GOLD. The library list (*LIBL) is used to find the file.