Deleting data sets based on JCL disposition and catalog status
SEQQSAMP member EQQDELDI contains JCL to run the sample program, EQQDELDS, that you can use to delete data sets based on the disposition specified in the JCL and the current status of the data set in the catalog. EQQDELDS is not a function of HCL Workload Automation for Z. The program is supported by HCL Workload Automation for Z development to help customers who require this function and who do not want to change existing application JCL. To run this program, modify the JCL statements identified by the characters <==== to meet your installation standards. EQQDELDS deletes any data set that has a disposition of (NEW,CATLG), or (NEW,KEEP) for SMS, if the data set is already present in the catalog. It optionally handles passed data sets.
You can use EQQDELDS to avoid not catlgd 2 situations. EQQDELDS cannot run concurrently with subsequent steps of the job in which it is inserted. Therefore, if Smartbatch is active, define EQQDELDS with ACTION=BYPASS in the Smartbatch user control facility.
- DASD data sets on primary volume(s) are deleted using IDCAMS.
- Tape data sets are deleted using IDCAMS NOSCRATCH. This does not cause mount requests for the specified tape volumes.
- DFHSM-migrated data sets are deleted using the ARCHDEL (ARCGIVER) interface. data sets are not moved to primary volumes (recalled) before deletion.
EQQDELDS logs all actions performed in text lines written to the SYSPRINT DD.
A nonzero return code from IDCAMS or ARCHDEL causes EQQDELDS to end.
You can use the EQQUX001 exit to automatically add an EQQDELDS step to all jobs submitted by HCL Workload Automation for Z.
See also Limitation on the number of job steps.