John,

Doing a PING first will let you know if you can connect at all, but it
won't help guarantee the FTP will succeed.    We have many jobs that
connect successfully to an FTP server, begin the transfer and then fail.


What we do is call a REXX which calls FTP and tests the RC.  If it isn't
zero, the REXX calls a "sleep" program for 60 seconds, and then loops
through the FTP commands up to 9 times.

This has helped us immensely, but it doesn't completely eliminate
failures, and can't help at all in situations where files need to be
deleted or renamed (trying to execute those commands more than once
usually results in failure or, worse, the wrong file being deleted or
renamed). 

HTH,
Greg Shirey
Ben E. Keith Company 


-----Original Message-----
From: IBM Mainframe Discussion List On Behalf Of John P Donnelly
Sent: Friday, March 07, 2008 10:07 AM

So, the question is, might we setup some kind of a PING process and then
depending on the RC from the PING either enter a WAIT for 60 seconds or
continue?

What do you do?  

<snip>

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