On 10/20/2006 11:00 AM, McKown, John wrote:
Unfortunately the (EXIT means that any error or warning will result in a
non-zero return code. We cannot use it in some ftps because we have:

put mainframe.file temp.output.file
del output.file
rename temp.output.file output.file

If "output.file" does not exist, then the "del" command will give a
message which causes the ftp step to get a non-zero return code. As to
why we do this, there is a process which looks for a new "output.file"
and when it sees it, it processes it. So we cannot ftp directly to that
name because it is possible for the off-site process to "fire up" before
the ftp is complete. But the rename will fail if "output.file" already
exists, so we must attempt to delete it. this is basically a "no win"
situation. If "output.file" does not exist then (EXIT will cause a
non-zero due to the "del". If "output.file" does exist and the "del" is
not done, then the "rename" will fail.

Couldn't you put the "del" in a separate FTP step, executed first? Yes, that's a change to your JCL, but it seems like a fairly simple one to resolve the problem.

Or couldn't you leave the output.file around normally, and do:
  put mainframe.file output.file   (would not trigger anything)
  rename output.file temp.output.file
  rename temp.output.file output.file (would trigger processing)


        Walt

----------------------------------------------------------------------
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

Reply via email to