Command reference / db
RNMM
Rename Member
Changes the name of a specified file member. The member cannot be renamed while it is in use. Other users can still read and change records in other members of the same file. A member opened in the same job cannot be renamed.
Allowed environments: *ALL.
Positional parameters: 3.
Restrictions
- Requires *OBJMGT authority for the file that contains the member, and *UPDATE and *EXECUTE authority for the library where the file is located.
- Conditionally threadsafe. In multithreaded jobs it is not threadsafe and fails for DDM files of type *SNA.
Parameters
FILE
Data base file
Specifies the database file (physical or logical) that contains the member to be renamed. This is a required parameter.
*LIBL- All libraries in the library list for the current thread are searched until the first match is found.
*CURLIB- The current library for the job is used to locate the file. If no current library is set, QGPL is used.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Data base file
Data base file
Library
Library
Suggested / special values:
*LIBL, *CURLIB
MBR
Member
Specifies the physical or logical file member to be renamed. This is a required parameter.
NEWMBR
New member
Specifies the new name for the member. The member stays in the same file, the new name must differ from MBR, and it must be unique in the file. This is a required parameter.
Examples
RNMM FILE(ELEMENT) MBR(LEAD) NEWMBR(GOLD)
Renames member LEAD in file ELEMENT to GOLD. The library list (*LIBL) is used to find the file.
Generated from os/cl/catalog/RNMM.json and os/cl/help/RNMM.json.