Renames a member of a PDS.
&CONTROL SHRVARS=($DS)
EXEC $DSCALL OPT=RENMEM
DSN=dataset_name
MEMBER=member_name
NEWNAME=member_name
This call is used to rename a member of a PDS. This call fails if the specified member is in use by another user, or if a member with the new name already exists.
Operands:
Specifies that a member be renamed.
Specifies the name of the PDS containing the member. No member name is specified.
Specifies the member to be renamed. A member name must be provided.
Specifies the new name for the member.
Return Codes:
Note: For more information about &SYSMSG, &$DSRC, and &$DSFDBK, see Return Codes and Feedback Codes.
Example: OPT=RENMEM
EXEC $DSCALL OPT=RENMEM DSN=CUSTOMER.DATA MEMBER=DEV01 + NEWNAME=TEST01