Where allowed to run: All environments (*ALL) Threadsafe: Conditional |
Parameters Examples Error messages |
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:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
FILE | Data base file | Qualified object name | Required, Positional 1 |
Qualifier 1: Data base file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
MBR | Member | Name | Required, Positional 2 |
NEWMBR | New member | Name | Required, Positional 3 |
Top |
Specifies the database file (physical or logical) that contains the member to be renamed.
This is a required parameter.
Qualifier 1: Data base file
Qualifier 2: Library
Top |
Specifies the physical or logical file member that is to be renamed.
This is a required parameter.
Top |
Specifies the new name to be given to the file member. The member remains in the same file. The new name must not be the same as the name specified on the Member (MBR) parameter. The new name must be unique in the file.
This is a required parameter.
Top |
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.
Top |
Top |