View previous topic :: View next topic
|
Author |
Message |
n_rajesh
New User
Joined: 06 Dec 2007 Posts: 1 Location: Chennai
|
|
|
|
I have with two questions:
1) If your job has Step1,2,3,4 and Step2 abends, how will you restart the job. (Note : Step2 has IF/THEN RC condition)?
2) If your job has step1,2,3,4, what you will do if you need run only Step3? |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Rajesh,
Welcome to the forums.
Quote: |
1) If your job has Step1,2,3,4 and Step2 abends, how will you restart the job. (Note : Step2 has IF/THEN RC condition)? |
Code the RESTART parameter in the job card.
Quote: |
2) If your job has step1,2,3,4, what you will do if you need run only Step3? |
You can restart from step 3 and code the condition parameter COND=(0,LE) in step4.
Also search this forum for similar topics. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Quote: |
2) If your job has step1,2,3,4, what you will do if you need run only Step3? |
code in the JOB card: RESTART=STEP3,COND=(0,LE) |
|
Back to top |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 631 Location: Wisconsin
|
|
|
|
And.... if production abended and you have no access to the jobcard to change these things? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
What is the site's policy for handling both events? What do the Production Support people say? I would find it hard to belive that no jobs have ever needed to be restarted before. |
|
Back to top |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 631 Location: Wisconsin
|
|
|
|
I just posted as a counter to coding things on the job card. We aren't allowed to touch production jobs unless there is absolutely no other way to fix the abended job. We can however call operations and say, restart this job in Step xxx### and they take care of it. Our other alternative is to copy the job to a temp library and remove steps if there is logic or code the job card. |
|
Back to top |
|
|
beruoist
New User
Joined: 14 Nov 2007 Posts: 70 Location: mumbai
|
|
|
|
I am in prod support from last two years..the same scenario is with we me also..
for these kindaa situatons we have to ask the operatrions guys to simply start the jobs from the failed step..
now what they do is the same thing,,edit's the JCL with the necessary loadlibs in the black box and re-runs the job
cheers!!!
chirkut |
|
Back to top |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 631 Location: Wisconsin
|
|
|
|
CA7 here lets them specify a restart step without modification of the job |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Steve said:
Quote: |
And.... if production abended and you have no access to the jobcard to change these things? |
The ans is simple: Talk to Prod Cntl about your problem, not a forum. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
I have only seen 1 answer on part 1 of the question
ie.
Code: |
1) If your job has Step1,2,3,4 and Step2 abends, how will you restart the job. (Note : Step2 has IF/THEN RC condition)? |
and that was to restart the step.
How do you nullify the IF/THEN RC condition without removing the statement.
If you leave the statement in, the job flushes
Gerry |
|
Back to top |
|
|
die7nadal
Active User
Joined: 23 Mar 2005 Posts: 156
|
|
|
|
n_rajesh wrote: |
I have with two questions:
1) If your job has Step1,2,3,4 and Step2 abends, how will you restart the job. (Note : Step2 has IF/THEN RC condition)?
|
Suppose if your IF/THEN statement says
IF STEP0001.RC=2 THEN
change it to
IF (STEP0002.RUN=FALSE) OR (STEP0001.RC=2)
Also add RESTART=STEP0002 to the Jobcard. |
|
Back to top |
|
|
die7nadal
Active User
Joined: 23 Mar 2005 Posts: 156
|
|
|
|
There was a typo in my previous post,
Suppose if your IF/THEN statement says
IF STEP0001.RC=2 THEN
change it to
IF (STEP0001.RUN=FALSE) OR (STEP0001.RC=2)
Also add RESTART=STEP0002 to the Jobcard. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
die7nadal wrote: |
There was a typo in my previous post,
Suppose if your IF/THEN statement says
IF STEP0001.RC=2 THEN
change it to
IF (STEP0001.RUN=FALSE) OR (STEP0001.RC=2)
Also add RESTART=STEP0002 to the Jobcard. |
The "IF STEP0001" statement comes before STEP0002 so why would it affect a restart at STEP0002? |
|
Back to top |
|
|
die7nadal
Active User
Joined: 23 Mar 2005 Posts: 156
|
|
|
|
Quote: |
The "IF STEP0001" statement comes before STEP0002 so why would it affect a restart at STEP0002? |
When a step is restarted with an IF/THEN stmt (STEP0001.RC=2) it will fail (even through some schedulers), because the IF condition will not be satisfied, as STEP0001 did not run. So STEP0001.RUN=FALSE will satisfy the If condition, as STEP0001 did not run. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
I was really more concerned if you were executing a catalog procedure, I know you can copy the proc out and either remove the IF/THEN statement or change it to FALSE, but how do you override the PROC as you can do with normal COND parameters.
That's why I was asking how to nullify the IF/THEN parameter.
Gerry |
|
Back to top |
|
|
|