z/OS DFSMSdss Storage Administration
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Renaming data sets during logical restore processing

z/OS DFSMSdss Storage Administration
SC23-6868-01

In addition to cataloging data sets when they are restored, you can rename restored data sets by using the RENAME keyword. For instance, you can code the following to rename a data set you are restoring:

RESTORE  -
        INDDNAME(TAPE)  -
        DATASET(INCLUDE(USER2.OLDDS))  -
        RENAME(*.OLDDS,*.NEWDS)
Note: The RENAME keyword works only if the data set exists on the output DASD with the old name. If you really want to unconditionally rename a data set, use RENAMEUNCONDITIONAL. Both VSAM and non-VSAM data sets can be renamed. The rules for renaming VSAM clusters are the same as for non-VSAM data sets. You can rename only clusters. DFSMSdss assigns a new name for the components of VSAM clusters. SMS considerations require DFSMSdss to ensure that VSAM component names resolve to the same catalog as the cluster name. DFSMSdss uses the cluster name as a guide to determine the component names. This applies equally to SMS and non-SMS data sets.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014