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

Parameters

FILE Data base file

Specifies the database file (physical or logical) that contains the member to be renamed. This is a required parameter.

Type
*QUAL
Required
Yes
Case
Uppercase
*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

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

MBR Member

Specifies the physical or logical file member to be renamed. This is a required parameter.

Type
*NAME
Required
Yes
Length
10
Case
Uppercase

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.

Type
*NAME
Required
Yes
Length
10
Case
Uppercase

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.

IBM command documentation

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