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


Example 2G: using the REPLACE and RENAMEUNCONDITIONAL keywords

z/OS DFSMSdss Storage Administration
SC23-6868-01

RESTORE  INDDNAME(TAPE) OUTDDNAME(DASD1) -
         DATASET(INCLUDE(**)) LOGICALVOLUME(111111) -
         REPLACE -
         RENAMEUNCONDITIONAL((USER2),(*.PEAR.**,*.PLUM.**), -
                            (MY.SPECIFIC.DS,YOUR.ANY))

RENAMEUNCONDITIONAL is used for movable data sets; REPLACE is used for unmovable data sets. With the RENUNC keyword, movable data sets are renamed whether or not they exist on DASD with the old name. In the example, data sets with a second-level qualifier of PEAR are renamed by using a second-level qualifier of PLUM. MY.SPECIFIC.DS is renamed as YOUR.ANY. The first-level qualifier of all other movable data sets is changed to USER2. Unmovable data sets are not renamed.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014