> -----Original Message----- > From: IBM Mainframe Discussion List > [mailto:[EMAIL PROTECTED] On Behalf Of Walt Farrell > Sent: Friday, October 20, 2006 9:52 AM > To: [email protected] > Subject: Re: Multiple FTP Problems > > > On 10/20/2006 8:43 AM, Charles Mills wrote: > > Be aware that the FTP authors didn't view return codes the > way, say, the > > writers of the COBOL compilers or IEBCOPY did. It's > entirely possible to get > > a zero return code from an FTP jobstep that has gone terribly wrong. > > > > Yes, there are circumventions. Just be warned that all FTP > zero return codes > > do not equal data processing success. > > Have you considered using PARM='(EXIT' on your batch FTP job > steps? That > will cause FTP to set meaningful return codes. >
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. -- John McKown Senior Systems Programmer HealthMarkets Keeping the Promise of Affordable Coverage Administrative Services Group Information Technology This message (including any attachments) contains confidential information intended for a specific individual and purpose, and its content is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this transmission, or taking any action based on it, is strictly prohibited. ---------------------------------------------------------------------- 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

