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 doesn't 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

 
 

Source Code

The program ASLDEL is released as Object Code Only (OCO).  
 
 
 

PDF manual
for ASLDEL

This link will take you to a file that contains the PDF manaual for ASLDEL.  
 
 
 

z/OS load library

This link will take you to a XMIT file that contains the z/OS load library containing the ASLDEL program in IBM TSO TRANSMIT format. This file should be transferred to the z/OS system using a file transfer program. The file must be transferred as a BINARY file. It should be transferred as a fixed blocked, 80 byte file.

Once the file is on z/OS it will have to be received. To do this you use the TSO RECEIVE command. Please refer to the IBM RECEIVE command for details on the use of this TSO command.
 

This material has been used successfully by Abbydale Systems LLC. and to the best of our knowledge this material and any system(s) of which it is a part are operational as of the service level or date stated in the body of this material (if so stated). However, NO warranty is given or implied as to the accuracy of this material or any related material or systems, and no responsibility is assumed for any effect or modification directly or indirectly caused by the use of this material.

It is the responsibility of any user of this material to evaluate its usefulness to the user's environment.

Abbydale Systems LLC. does not guarantee to keep this or any related material current, nor does it guarantee to provide any corrections or extensions described by any users of this material or any corrections or extensions made in the future by Abbydale Systems LLC. itself.

 
 


If you need any support or assistance with any of the code on this site
or
if you would like to contact us, please click here

follow us on facebook
Follow us on Facebook

 

Number of unique visitors 564

Copyright © Abbydale Systems LLC 2015-2024

Abbydale Systems LLC Lic. 802696149. All rights reserved.

Last modified : Monday 15th of August 2022