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


Example 5: using the RENAME keyword to restore a VSAM data set

z/OS DFSMSdss Storage Administration
SC23-6868-01

//JOB3     JOB   accounting information,REGION=nnnnK
//STEP1    EXEC  PGM=ADRDSSU
//TAPE     DD    UNIT=3480,VOL=SER=TAPE04,
//  LABEL=(1,SL),DISP=(OLD,KEEP),DSN=USER3.BACKUP
//SYSPRINT DD    SYSOUT=A
//SYSIN    DD    *
 RESTORE INDD(TAPE) OUTDYNAM(338000) -
   DS(INCL(PARTS.VSAM1))             -
   RENAME(*.VSAM1,*.VSAM2)           -
   CATALOG
/*

A VSAM key-sequenced data set, PARTS.VSAM1, is restored from a logical dump tape in this example. It is renamed as PARTS.VSAM2 and cataloged in the standard order of search. The cluster’s components, PARTS.VSAM1.DATA and PARTS.VSAM1.INDEX, are also renamed.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014