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


Example 7: clearing volumes of uncataloged data sets

z/OS DFSMSdss Storage Administration
SC23-6868-01

//JOB7     JOB   accounting information,REGION=nnnnK
//STEP1    EXEC  PGM=ADRDSSU
//SYSPRINT DD    SYSOUT=A
//DASD1    DD    VOL=SER=MYVOL1,UNIT=SYSDA,DISP=OLD
//DASD2    DD    VOL=SER=MYVOL2,UNIT=SYSDA,DISP=OLD
//TAPE     DD    UNIT=3480,VOL=SER=TAPE04,LABEL=(1,SL),
//  DISP=(NEW,CATLG),DSN=USER3.BACKUP
//SYSIN    DD    *
  DUMP DATASET(INCLUDE(**) -
               BY((DSORG NE VSAM) -
                  (CATLG EQ NO))) -
       LOGINDDNAME(DASD1,DASD2) -
       OUTDDNAME(TAPE) -
       DELETE PURGE
/*

Logical data set dump cannot be used to dump SMS data sets that are not cataloged or are cataloged outside the standard order of search. DFSMSdss physical data set dump or IDCAMS DELETE NVR can be used for such cleanup operations.

If you do not want a dump of the uncataloged data sets, the output ddname TAPE can be a dummy. DASD1 and DASD2 identify the input volumes. A logical data set dump cannot handle multiple uncataloged data sets with the same name in the same job even if all the volumes on which they reside are specified as input volumes.

A logical dump can handle a legitimate multivolume uncataloged data set if all the volumes on which it resides are specified as input volumes and if no cataloged data set by the same name exists on the system.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014