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.

DELETEThe second DELETE command deletes all remaining members and then thepartitioned non-VSAM data set, EXAMPLE.NONVSAM2, itself. Its parameters are:vvvEXAMPLE.NONVSAM2 is the entryname of the object being deleted.PURGE specifies that the non-VSAM data set’s retention period or date beignored. If PURGE is not specified and the non-VSAM data set’s retentionperiod has not expired, VSAM does not delete its entry.CATALOG identifies the catalog, USERCAT4.In the second part of this example, the DSCB entry in the volume’s VTOC isremoved. Dynamic allocation is used to allocate the data set’s volume.Delete a Page Space: Example 14In this example, page space SYS1.PAGE2 is deleted from the master catalog. Youmust ensure other BCS’s do not have that data set cataloged by per<strong>for</strong>ming aDELETE N<strong>OS</strong>CRATCH on each, and then per<strong>for</strong>ming a DELETE SCRATCH on theBCS that originally ’owned’ the system data set.//DELET11 JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *DELETE -SYS1.PAGE2 -PURGE -PAGESPACE/*The DELETE command removes the page space entry, SYS1.PAGE2, from themaster catalog. Its parameters are:vvvSYS1.PAGE2 is the entryname of the object being deleted. SYS1.PAGE2 identifiesa page space entry.PURGE specifies that the page space entry be deleted regardless of the retentionperiod or date specified when it was defined.PAGESPACE specifies the type of entry being deleted. VSAM verifies thatSYS1.PAGE2 is a page space entry, then deletes it. If SYS1.PAGE2 incorrectlyidentifies another type of entry, VSAM does not delete it, but sends an errormessage to the programmer.Delete a VVDS with Recovery: Example 15In this example, the VVDS is deleted. The VTOC and catalog entries <strong>for</strong> the objectsreflected by the VSAM volume records (in the VVDS) remain intact.//DELET13 JOB ...//STEP1 EXEC PGM=IDCAMS//DD1 DD VOL=SER=338001,UNIT=3380,DISP=OLD//SYSPRINT DD SYSOUT=A//SYSIN DD *DELETE -SYS1.VVDS.V338001 -FILE(DD1) -RECOVERY/*vvvSYS1.VVDS.V338001 is the name of the VVDS.FILE specifies the name of a DD statement that both describes the VVDS volumeand causes it to be mounted.RECOVERY specifies that the VVDS entry is being deleted from the VTOC aspart of a recovery operation.234 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!