Delete a Generation Data Group with Recovery: Example 12
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.