z/OS Program : ASLDEL |
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'
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. |
||||||||||||||||||||||||||
Number of unique visitors 778
Copyright © Abbydale Systems LLC 2015-2024
Abbydale Systems LLC Lic. 802696149. All rights reserved.