View previous topic :: View next topic |
Author |
Message |
ptf Beginner
Joined: 03 Jun 2004 Posts: 10 Topics: 5
|
Posted: Thu Jun 03, 2004 11:35 am Post subject: ftp dropped connection issue |
|
|
In my jcl, I am ftp'ing a file using IBM FTP V2R10 and my connection sometimes gets dropped? Is their a way to be able to retry x number of times before abending? |
|
Back to top |
|
|
manojagrawal Beginner
Joined: 25 Feb 2003 Posts: 124 Topics: 29
|
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Thu Jun 03, 2004 4:17 pm Post subject: |
|
|
ptf, I have been searching through the TCP/IP User's Guide and I cannot find a RETRY command for the FTP process. There is a RESTART command to use for a failed transmission if you are using checkpoint-restarts, but at this point I will presume that you are not.
A well-designed FTP application would take into account such a failure, as it is an inevitable occurence when dealing with FTP and TCP/IP networks. The application would check for a valid return-code from the FTP process and would, if necessary, either re-start the FTP process again or re-submit the entire FTP application again. It would probably want to keep track of the number of occurences of failures and terminate the application when a pre-determined threshold has been reached. It would probably also execute a directory listing command after the file transfer and read the directory contents and verify that the file has been successfully stored on the remote server. Or, the remote server would generate some sort of transfer confirmation that the FTP application could retrieve and compare against what was originally transmitted. |
|
Back to top |
|
|
ptf Beginner
Joined: 03 Jun 2004 Posts: 10 Topics: 5
|
Posted: Fri Jun 04, 2004 11:06 am Post subject: |
|
|
superk wrote: | ptf, I have been searching through the TCP/IP User's Guide and I cannot find a RETRY command for the FTP process. There is a RESTART command to use for a failed transmission if you are using checkpoint-restarts, but at this point I will presume that you are not.
A well-designed FTP application would take into account such a failure, as it is an inevitable occurence when dealing with FTP and TCP/IP networks. The application would check for a valid return-code from the FTP process and would, if necessary, either re-start the FTP process again or re-submit the entire FTP application again. It would probably want to keep track of the number of occurences of failures and terminate the application when a pre-determined threshold has been reached. It would probably also execute a directory listing command after the file transfer and read the directory contents and verify that the file has been successfully stored on the remote server. Or, the remote server would generate some sort of transfer confirmation that the FTP application could retrieve and compare against what was originally transmitted. |
How can I systematically restart the ftp step in my jcl if the ftp step fails? |
|
Back to top |
|
|
|
|