View previous topic :: View next topic
|
Author |
Message |
Munish Singla
New User
Joined: 18 Jul 2007 Posts: 21 Location: kolkata
|
|
|
|
Hi All,
We have a requirement that we need to retry FTP connection from within Job in case it fails to connect to Vendor's FTP server.
Please suggest. Thanks. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
How many retries? This should be a fairly small number. No reason to retry lots times if the remote server is down. . .
You might try this:
Code: |
//MYFTP EXEC FTP,PARM='IP=xx.xx.xx,RETRY=02' |
|
|
Back to top |
|
|
ttcf15
New User
Joined: 11 Aug 2009 Posts: 6 Location: China
|
|
|
|
may be this will help
Code: |
//USERIDC JOB 'USERIDC',NOTIFY=USERID,CLASS=A,
// MSGCLASS=X,MSGLEVEL=(1,1)
//FTP EXEC PGM=FTP PARM='/-D (EXIT'
//SYSPRINT DD SYSOUT=*
//OUTPUT DD SYSOUT=*
//INPUT DD *
HOST IP
USERID
PASSWORD
others.....
QUIT
//*
|
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
may be this will help |
Maybe it will. . .
Suggest that you explain to the TS why you chose the PARM values that are in this example to provide the retry capability requested. TS and many others are not so familiar with the FTP utility. |
|
Back to top |
|
|
Munish Singla
New User
Joined: 18 Jul 2007 Posts: 21 Location: kolkata
|
|
|
|
Thanks. I will try that |
|
Back to top |
|
|
|