z/OS DFSMS Access Method Services Commands
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Delete Generically Named Entries in a Catalog: Example 10

z/OS DFSMS Access Method Services Commands
SC23-6846-01

In this example, each catalog entry with the name GENERIC.*.BAKER is deleted, where * is any 1-to-8 character simple name. The name GENERIC.*.BAKER is a generic name, and all catalog entries with the same generic name are deleted. Use this example to delete multiple entries. Multiple entries are entries with three levels of qualification where the first is GENERIC and the third is BAKER.
//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 the generic name GENERIC.*.BAKER from catalog USERCAT4. Its parameters are:
  • GENERIC.*.BAKER, a generic name, identifies all catalog entries with the high-level qualifier GENERIC and the low-level qualifier BAKER.
  • PURGE specifies that each entry is to be purged regardless of the retention period or date specified when it was defined.
  • CATALOG identifies the catalog, USERCAT4.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014