IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Retry FTP connection in JCL.


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Munish Singla

New User


Joined: 18 Jul 2007
Posts: 21
Location: kolkata

PostPosted: Wed Aug 12, 2009 1:47 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Aug 12, 2009 1:56 am
Reply with quote

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
View user's profile Send private message
ttcf15

New User


Joined: 11 Aug 2009
Posts: 6
Location: China

PostPosted: Wed Aug 12, 2009 2:16 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Aug 12, 2009 9:01 pm
Reply with quote

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
View user's profile Send private message
Munish Singla

New User


Joined: 18 Jul 2007
Posts: 21
Location: kolkata

PostPosted: Thu Aug 13, 2009 4:48 am
Reply with quote

Thanks. I will try that
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Getting Error while trying to establi... DB2 3
No new posts Starting a remote transaction using a... CICS 0
No new posts SFTP connection to Mainframe TSO/ISPF 4
No new posts cics-dbctl connection and disconnection CICS 3
No new posts CICS-MQ connection setup issue CICS 3
Search our Forums:

Back to Top