RENAME Command
RENAME Command
RENAME statement is used to rename a dataset or member in a partitioned dataset.
Syntax -
RENAME <oldname> <newname> [options]
Where -
- oldname is the current name of the dataset or member to be renamed.
- newname is the new name for the dataset or member.
- Options are optional parameters that you can use to customize the renaming process.
Examples -
Scenario1 - Rename dataset.
RENAME 'MATEPK.COBOL.SRCLIB' 'MATEPK.COBOL.SRCLIB1'
This would rename MATEPK.COBOL.SRCLIB members to MATEPK.COBOL.SRCLIB1.