View previous topic :: View next topic
|
Author |
Message |
superori
New User
Joined: 09 Feb 2006 Posts: 3
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
superori
New User
Joined: 09 Feb 2006 Posts: 3
|
|
|
|
How can I do the re-submit itself whenever the FTP step fails? |
|
Back to top |
|
|
sanjayis01 Warnings : 1 New User
Joined: 13 Jun 2007 Posts: 55 Location: banaglore
|
|
|
|
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 |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
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 |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
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 |
|
|
superori
New User
Joined: 09 Feb 2006 Posts: 3
|
|
|
|
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 |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
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 |
|
|
|