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


Delete a User Catalog: Example 8

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

In this example, a user catalog is deleted. A user catalog can be deleted when it is empty—that is, when there are no objects cataloged in it other than the catalog's volume. If the catalog is not empty, it cannot be deleted unless the FORCE parameter is specified.

Attention: The FORCE parameter deletes all clusters in the catalog.
//DELET6  JOB   ...
//STEP1    EXEC  PGM=IDCAMS
//SYSPRINT DD    SYSOUT=A
//SYSIN    DD    *
     DELETE -
           XXXUCAT1 -
           PURGE -
           USERCATALOG
/*
The DELETE command deletes both the catalog and the catalog's user catalog connector entry in the master catalog. The parameters are:
  • XXXUCAT1 is the name of the user catalog.
  • PURGE indicates the user catalog's retention period or date is to be ignored. If PURGE is not specified and the catalog's retention period has not yet expired, the catalog will not be deleted.
  • USERCATALOG identifies XXXUCAT1 as a user catalog.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014