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.

DELETE//DELET8 JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *DELETE -GENERIC.*.BAKER -PURGE -CATALOG(USERCAT4)/*The DELETE command removes all entries (and their associated entries) with thegeneric name GENERIC.*.BAKER from catalog USERCAT4. Its parameters are:vvvGENERIC.*.BAKER, a generic name, identifies all catalog entries with thehigh-level qualifier GENERIC and the low-level qualifier BAKER.PURGE specifies that each entry is to be purged regardless of the retentionperiod or date specified when it was defined.CATALOG identifies the catalog, USERCAT4.List a Generation Data Group’s Entries, Then Delete the Groupand Its Data Sets in a Catalog: Example 11In this example, a generation data group, GDG01, and its associated (generationdata set) entries are listed, the only generation data set in the group is deleted, andthe generation data group base catalog entry is deleted.//DELET9 JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *LISTCAT -ENTRIES(GDG01) -ALLDELETE -GDG01.G0001V00 -PURGEDELETE -GDG01 -GENERATIONDATAGROUP -PURGE/*The LISTCAT command lists the generation data group, GDG01, and its associatedgeneration data set entries. The parameters are:vvENTRIES specifies that the entry GDG01 be listed. Because GDG01 is ageneration data group entry, its associated generation data set’s (non-VSAM)entries are also listed. If one of the generation data sets has aliases, the aliasentries associated with the generation data set’s entry are listed.ALL specifies that all fields are to be listed.The first DELETE command removes the non-VSAM data set entry <strong>for</strong> the onlygeneration data set, GDG01.G0001V00, in the generation data group. Its parametersare:vvGDG01.G0001V00 is the entryname of the object being deleted.GDG01.G0001V00 identifies the only generation data set in generation datagroup GDG01.PURGE specifies that the generation data set’s retention period or date beignored.232 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!