09.07.2015 Views

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DELETEvvTRUENAME specifies the type of entry to be deleted. When a truename entry isto be deleted, the TRUENAME parameter is required.CATALOG identifies the catalog that contains the entry to be deleted,USERCAT4.Delete a User Catalog <strong>for</strong> Recovery: Example 2In this example, a user catalog is deleted in preparation <strong>for</strong> replacing it with animported backup copy. The VVDS and VTOC entries <strong>for</strong> objects defined in thecatalog are not deleted and the data sets are not scratched.//DELET13 JOB ...//STEP1 EXEC PGM=IDCAMS//DD1 DD VOL=SER=VSER01,UNIT=3380,DISP=OLD//SYSPRINT DD SYSOUT=A//SYSIN DD *DELETE -USERCAT4 -FILE(DD1) -RECOVERY -USERCATALOG/*The DELETE command deletes a user catalog without deleting the VVDS andVTOC entries of the objects defined in the catalog. Its parameters are:vvvvUSERCAT4 is the name of the catalog.FILE specifies the ddname of a DD statement that describes the user catalog’svolume and causes it to be mounted.RECOVERY specifies that only the catalog data set is deleted without deletingthe objects defined in the catalog.USERCATALOG specifies that the entryname identifies a user catalog. When auser catalog is to be deleted, the USERCATALOG parameter is required.Delete VSAM Volume Records: Example 3In this example, VSAM volume records (VVRs) belonging to a data component of akey-sequenced cluster are deleted from the VVDS. The purpose of this example isto clean up the VVDS when there are residual records as a result of an error.//DELET14 JOB ...//STEP1 EXEC PGM=IDCAMS//DD1 DD VOL=SER=VSER01,UNIT=3380,DISP=OLD//SYSPRINT DD SYSOUT=A//SYSIN DD *DELETE -EXAMPLE.KSDS01.DATA -FILE(DD1) -VVR/*The DELETE command deletes the VVRs associated with a VSAM cluster from theVVDS and from the VTOC. Its parameters are:vvvEXAMPLE.KSDS01.DATA is the name of the data component of the cluster.FILE specifies the ddname of a DD statement that describes the volumes thatcontain VVDS entries associated with this cluster.VVR specifies that only the VVRs <strong>for</strong> the cluster are to be deleted.228 z/<strong>OS</strong> <strong>V1R6.0</strong> <strong>DFSMS</strong> <strong>Access</strong> <strong>Method</strong> <strong>Services</strong> <strong>for</strong> <strong>Catalogs</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!