As ever, you use this free program at your own risk.
Feel free to use the free software on this site but please honor the copyright.
Is there anything more irritating than a job failing because it is trying to
delete a dataset that doesn't exist?
There is, of course, the IDCAMS solution to this but that requires control
cards to be written (which really isn't an issue if you use
ASLPARMC), then there is the IEFBR14 solution that could
result in jobs failing with a JCL error. Neither of these is particularly
useful and can result in failing jobs. Therefore we use ASLDEL
(formerly UTDELETE).
ASLDEL is a program that will delete a dataset, if it exists, that is
passed to it as a parameter.
In the event that the dataset does not exist ASLDEL will, by default,
return a condition code of 8, however, it can be made to always return a
condition code of 0. To make it return a condition code of zero simply
pass 'RC=0', 'COND=0' or 'CODE=0' as the first parameter string that is
passed to the program.
i.e EXEC PGM=ASLDEL,PARM='COND=0,your.dataset'
| Link |
Description | |
|---|---|---|
| This link will take you
to a file that contains the PDF manual for ASLDEL.
This manual also contains installation instructions. The manual is also provided in the PDS that is in the XMI file. |
||
|
|
||
| This link will take you to a file that contains the z/OS load library containing the ASLDEL program. This file should be unzipped and the TSO transmit file (ASLDEL.XMI) should be transferred to the z/OS system using a file transfer program. The file must be transferred as a BINARY file. | ||
|
|
||
| This
link will display program assembly and link information for ASLDEL. |
||
|
|
||
Abbydale Systems LLC Lic. 802696149. All rights reserved.