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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DELETEThe second DELETE command removes the generation data group base catalogentry from the catalog. Its parameters are:vvvGDG01 is the entryname of the object being deleted. GDG01 identifies thegeneration data group base entry.GENERATIONDATAGROUP specifies the type of entry being deleted. VSAMverifies that GDG01 is a generation data group entry, then deletes it. If GDG01incorrectly specifies another type of entry, VSAM does not delete the entry, butnotes the discrepancy with a message to the programmer.PURGE specifies that the generation data group’s retention period or date beignored.Delete a Generation Data Group with Recovery: Example 12In this example, a generation data group base catalog entry, GDG01, is deletedfrom the catalog. The generation data sets associated with GDG01 remainunaffected in the VTOC.//DELETXX JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=ADELETE -GDG01 -GENERATIONDATAGROUP -RECOVERY/*The DELETE command removes the GDG base catalog entry from the catalog. Itsparameters are:vvvGDG01 is the name of the GDG base entry.GENERATIONDATAGROUP specifies the type of entry being deleted. VSAMverifies that GDG01 is a GDG entry, then deletes it. If GDG01 is not a GDGentry, VSAM issues a message and does not delete it.RECOVERY specifies that only the GDG base entry name in the catalog isdeleted. Its associated generation data sets remain intact in the VTOC.Delete a Member of a Partitioned (Non-VSAM) Data Set in aCatalog: Example 13In this example, the MEM1 member of partitioned data setEXAMPLE.NONVSAM2 is deleted, then the data set itself is deleted.//DELET10 JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *DELETE -EXAMPLE.NONVSAM2(MEM1) -DELETE -EXAMPLE.NONVSAM2 -PURGE -CATALOG(USERCAT4)/*The first DELETE command deletes a member of a partitioned data set,EXAMPLE.NONVSAM2(MEM1), from the user catalog USERCAT4. Its parametersare:vEXAMPLE.NONVSAM2(MEM1) is the entryname of a member of thepartitioned data set, EXAMPLE.NONVSAM2. The entryname identifies theobject to be deleted.Chapter 20. DELETE 233

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

Saved successfully!

Ooh no, something went wrong!