I use " (replace " at the end of the put command to overwrite the file.
On Wed, 21 May 2008 13:09:48 -0500, McKown, John <[EMAIL PROTECTED]> wrote: >> -----Original Message----- >> From: IBM Mainframe Discussion List >> [mailto:[EMAIL PROTECTED] On Behalf Of Howard Brazee >> Sent: Wednesday, May 21, 2008 1:02 PM >> To: IBM-MAIN@BAMA.UA.EDU >> Subject: FTP delete >> >> I have the following commands in my FTP: >> >> cd /ftp/SISR/RECREG >> delete person >> put 'UMSDEV.CONV.QA04.NPRSMED' person >> >> If "person" does not exist, the FTP aborts, but the new file is out >> there anyway. >> >> I'm running IKJEFT01 from within a standard proc. >> >> Is there a cleaner way to replace the file? > >Don't bother with the "delete". The "put" will replace it if it exists >or create it if it does not already exist. > >-- >John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html