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

JCL fails because of a ftp send connection failure


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
superori

New User


Joined: 09 Feb 2006
Posts: 3

PostPosted: Thu Jun 28, 2007 1:35 pm
Reply with quote

Hi, I have a step in JCL that sometimes fails because it's a ftp send and sometimes the connection falls down.

Well, I need that the JCL will stay executing this step until return code is Ok.

What is the better way to do that?

Help, please.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Jun 28, 2007 1:43 pm
Reply with quote

Simple. Either move the FTP process out of the JCL and under the control of a program, or, have the job re-submit itself whenever the FTP step fails.
Back to top
View user's profile Send private message
superori

New User


Joined: 09 Feb 2006
Posts: 3

PostPosted: Thu Jun 28, 2007 2:14 pm
Reply with quote

How can I do the re-submit itself whenever the FTP step fails?
Back to top
View user's profile Send private message
sanjayis01
Warnings : 1

New User


Joined: 13 Jun 2007
Posts: 55
Location: banaglore

PostPosted: Thu Jun 28, 2007 3:34 pm
Reply with quote

If FTP fails at particular step means , restart from that step it self using
RESTART=STEPNAME , in the jobcard ,


It failed with error code 425 thats connection failed.

best way to restsrrt with that step where it got failed .
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Jun 28, 2007 3:37 pm
Reply with quote

Quote:
If FTP fails at particular step means , restart from that step it self using
RESTART=STEPNAME , in the jobcard ,

Use this method, if your FTP step is the last step. Else create on more job with this step and submit the job.
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Thu Jun 28, 2007 3:50 pm
Reply with quote

Hi,

I dont think the FTP connection fails often ... So better you can restart from the particular step .. i guess mostly FTP will be the last step ... else write that particular step in seperate JCL as murali advised us ... Please let me know if any questions ...
Back to top
View user's profile Send private message
superori

New User


Joined: 09 Feb 2006
Posts: 3

PostPosted: Thu Jun 28, 2007 3:54 pm
Reply with quote

I need that the re-submit step will be automatic because this JCL is executed at night, nobody is here to resubmit it. It is possible?
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Fri Jun 29, 2007 3:12 pm
Reply with quote

Quote:

re-submit step will be automatic because this JCL is executed at night, nobody is here to resubmit it

If you had tried the given solution, you wouldn't ask this question.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Getting Error while trying to establi... DB2 3
No new posts REXX to send an email in Mainframe wi... CLIST & REXX 3
No new posts REXX to send an email in Mainframe CLIST & REXX 4
No new posts dsnrexx fails without error message CLIST & REXX 9
No new posts help send file AFT CONTROLM EM IBM Tools 0
Search our Forums:

Back to Top