On Tue, 8 Feb 2022 13:01:14 +0000, Billy Ashton <bill00ash...@gmail.com> wrote:

>Ok, here is a followup question from a problem I ran into...
>
>Is there a simple command like IEFBR14 that will allow me to delete a 
>USS path if it exists, or to just skip over it if not? Right now, if I 
>run IEFBR14, and have a DD statement with a path like 
>PATH='/tmp/tempfile.txt',PATHDISP=(DELETE,DELETE) and that file does not 
>exist, I get a JCL error.
>
>Ideally, I should not need this, but want to ensure that this file is 
>not there when I start my processing.
>
>Thank you and best regards,
>Billy Ashton
>
>----------------------------------------------------------------------
>For IBM-MAIN subscribe / signoff / archive access instructions,
>send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


use the bpxbatch program and parm='sh rm /tmp/tempfile.txt' or for MVS datasets 
that may or not exists you should use a DISP=(MOD,DELETE,DELETE)
correct the parms for your use, but this should work 
Carmen

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to