Renaming A Data Set
The RENAME command allows you to:
• Change the name of a data set.
• Change the name of a member of a partitioned data set.
• Assign an alias to a member of a partitioned data set.
If your LOGON user identification is SMITH and you have a data set
named SMITH. RECPT. DATA and you want to change it to SMITH. ACCT. DATA., you
can do so with any of the following RENAME commands:
rename 'smith.recpt.data ' • smith.acct. data ,
rename recpt.data acct.data
rename recpt acct
Note that the fully qualified name must be enclosed in apostrophes.
The simple user-supplied name can be used if you have only one data
set with that name.
However, if you have two data sets named
SMITH.RECPT.DATA and SMITH.RECPT.TEXT. you must specify either
RECPT.DATA or 'SMITH.RECPT.DATA' in the RENAME subcommand.
If you do
not specify the descriptive qualifier, the system will prompt you for
it .•
The following examples show how you can use RENAME to change the
identification qualifier or the descriptive qualifier.
rename • smith. acct .• data' • jones.acct • data'
rename acct. data acct. text
The following examples show how you can change more than one qualifier.
rename • smith. acct. dat a"
jones. recpt • text •
rename acct. data recpt.text
When changing the name of a member of a partitioned data set, you
must specify the existing data set name and member name and the new
member name.
For example" to change the name of a member of SMITH.AB79.
DATA from INPUT to ENTRY, you can do so with any of the following
commands:
rename 'smith.ab79.data(input)' (entry)
rename ab79.data(input) (entry)
rename ab79(input) (entry>
Use the ALIAS operand to indicate that the new member name is an
alias and not a replacement.
For example to assign the alias DAILY to
member INPUT of SMITH.AB79.DATA, use any of the following:
rename • smith.. ab79 .data (input)' (daily) alias
rename ab79.data(input) (daily) alias
rename ab79(input) (daily) alias
After entering this command the name of the member is either
SMITH.AB79.DATA(INPUT) or SMITH.AB79.DATA(DAILY).
sometimes you may have two or more data set names that are identical
in all but one of their qualifiers.
For example, you may have these
data sets:
or
JONES. ALPHA. DATA
JONES.BETA.DATA
54
TSO Terminal User's Guide'
(Release 21)