Delete a User Catalog for Recovery: Example 2
In this example, a user catalog is deleted in preparation for replacing
it with an imported backup copy. The VVDS and VTOC entries for objects
defined in the catalog are not deleted and the data sets are not scratched.
//DELET13 JOB ...
//STEP1 EXEC PGM=IDCAMS
//DD1 DD VOL=SER=VSER01,UNIT=3380,DISP=OLD
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
DELETE -
USERCAT4 -
FILE(DD1) -
RECOVERY -
USERCATALOG
/*
The DELETE command deletes a user catalog without deleting the
VVDS and VTOC entries of the objects defined in the catalog. Its parameters
are:
- USERCAT4 is the name of the catalog.
- FILE specifies the ddname of a DD statement that describes the user catalog's volume and causes it to be mounted.
- RECOVERY specifies that only the catalog data set is deleted without deleting the objects defined in the catalog.
- USERCATALOG specifies that the entryname identifies a user catalog. When a user catalog is to be deleted, the USERCATALOG parameter is required.