Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Retry FTP connection in JCL.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Retry FTP connection in JCL.
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

Site Director


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

PostPosted: Wed Aug 12, 2009 1:56 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Wed Aug 12, 2009 9:01 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts why we just define Connection but no ... zos5415 CICS 1 Fri Dec 13, 2013 11:12 am
No new posts Connection between 2 panels in same I... abdul.faras TSO/ISPF 4 Tue Jul 30, 2013 10:49 am
No new posts Socketexception:Connection reset erro... Thamilselvi CICS 0 Fri Apr 26, 2013 6:56 am
No new posts WSCON connection (new) jvikram253 TSO/ISPF 8 Tue Oct 09, 2012 7:35 pm
No new posts Linkedit COBOL with MQ Connection Garry Carroll Java & MQSeries 15 Wed Sep 05, 2012 9:41 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us