z/OS DFSMSdfp Utilities
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example 1: Scratch Temporary System Data Sets

z/OS DFSMSdfp Utilities
SC23-6864-00

In this example, all temporary system data sets are scratched from the volume table of contents.
  //SCRVTOC  JOB  ...
  //STEP1    EXEC PGM=IEHPROGM
  //SYSPRINT DD  SYSOUT=A
  //DD2      DD  UNIT=disk,VOLUME=SER=222222,DISP=OLD
  //SYSIN    DD  *
        SCRATCH  VTOC,VOL=disk=222222,SYS
  /*
The control statements are discussed below:
  • The DD2 statement defines a volume. Because the system residence volume is not referred to, a DD statement is needed to define it.
  • The SCRATCH statement, with SYS specified, indicates that all temporary system data sets whose expiration dates have expired are scratched from the specified volume.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014