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


Example 1: logical data set RESTORE—output volumes not specified

z/OS DFSMSdss Storage Administration
SC23-6868-01

//JOB5     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)    -
   DS(INCL(USER1.MULTVOL)) -
   REPLACE
/*

In Example 1, data set USER1.MULTVOL is restored. The location to which it is to be restored is not given. This RESTORE statement also applies when the data set has been scratched inadvertently after the dump operation. A multivolume data set is restored to the volumes from which it was dumped, provided the data set is preallocated on the output volumes. If it is not preallocated, the data set is restored to the first volume from which it was dumped that has adequate space to restore the data set as a single-volume data set.

The RESTORE statement can be modified as follows to support multiple restores of both single and multivolume data sets from dump tapes:
//SYSIN    DD    *
 RESTORE INDD(TAPE)          /* RESTORE                         */ -
   DS(INCL(USER1.CNTL.**))   /* USER’S CONTROL DATA SETS    */ -
   REPLACE                   /* OVERLAY DATA SETS IF THEY EXIST */
/*

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014