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


Delete a Generation Data Group with Recovery: Example 12

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

In this example, a generation data group base catalog entry, GDG01, is deleted from the catalog. The generation data sets associated with GDG01 remain unaffected in the VTOC.
//DELETXX   JOB   ...
//STEP1     EXEC  PGM=IDCAMS
//SYSPRINT  DD    SYSOUT=A
           DELETE -
           GDG01 -
           GENERATIONDATAGROUP -
           RECOVERY
/*
The DELETE command removes the GDG base catalog entry from the catalog. Its parameters are:
  • GDG01 is the name of the GDG base entry.
  • GENERATIONDATAGROUP specifies the type of entry being deleted. VSAM verifies that GDG01 is a GDG entry, then deletes it. If GDG01 is not a GDG entry, VSAM issues a message and does not delete it.
  • RECOVERY specifies that only the GDG base entry name in the catalog is deleted. Its associated generation data sets remain intact in the VTOC.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014