Hi Carmen, I am going to give gil's method a try first, as it is simple
enough to keep inside a BR14, and failing that, I will go with the shell
command. Thanks for the suggestion!
Thank you and best regards,
Billy Ashton
------ Original Message ------
From "Carmen Vitullo" <[email protected]>
To [email protected]
Date 2/8/2022 8:29:11 AM
Subject Re: how to do Unix copy command with temp file
On Tue, 8 Feb 2022 13:01:14 +0000, Billy Ashton <[email protected]> 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 [email protected] 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 [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN