Delete Two Key-Sequenced Clusters in a Catalog: Example 7
In this example, two key-sequenced clusters, EXAMPLE.KSDS01 and
EXAMPLE.KSDS02, are deleted from a catalog. It shows how more than
one cataloged object is deleted with a single DELETE command.
//DELET3 JOB ...
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
DELETE -
(EXAMPLE.KSDS01 -
EXAMPLE.KSDS02) -
PURGE -
CLUSTER
/*
The DELETE command deletes the key-sequenced clusters EXAMPLE.KSD01
and EXAMPLE.KSD02. Both entries are dynamically allocated in order
for their respective catalog recovery areas (CRA) to be updated. The
parameters are:
- EXAMPLE.KSDS01 and EXAMPLE.KSDS02 identify the objects to be deleted. These are the entrynames of two key-sequenced clusters.
- PURGE specifies that the cluster be deleted regardless of its retention period or date.
- CLUSTER specifies that EXAMPLE.KSDS01 and EXAMPLE.KSDS02 identify cluster catalog records.