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

JCL restarts


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

New User


Joined: 06 Dec 2007
Posts: 1
Location: Chennai

PostPosted: Thu Dec 06, 2007 7:45 pm
Reply with quote

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

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Dec 06, 2007 7:53 pm
Reply with quote

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

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Dec 06, 2007 8:24 pm
Reply with quote

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

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Thu Dec 06, 2007 11:11 pm
Reply with quote

And.... if production abended and you have no access to the jobcard to change these things?
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 Dec 06, 2007 11:31 pm
Reply with quote

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

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Thu Dec 06, 2007 11:34 pm
Reply with quote

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

New User


Joined: 14 Nov 2007
Posts: 70
Location: mumbai

PostPosted: Fri Dec 07, 2007 3:02 am
Reply with quote

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

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Fri Dec 07, 2007 3:05 am
Reply with quote

CA7 here lets them specify a restart step without modification of the job
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Dec 07, 2007 9:45 pm
Reply with quote

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

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Dec 11, 2007 7:52 am
Reply with quote

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

Active User


Joined: 23 Mar 2005
Posts: 156

PostPosted: Tue Dec 11, 2007 10:30 pm
Reply with quote

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

Active User


Joined: 23 Mar 2005
Posts: 156

PostPosted: Tue Dec 11, 2007 11:41 pm
Reply with quote

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

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Dec 11, 2007 11:45 pm
Reply with quote

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

Active User


Joined: 23 Mar 2005
Posts: 156

PostPosted: Wed Dec 12, 2007 2:21 am
Reply with quote

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

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Dec 12, 2007 4:59 am
Reply with quote

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
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 regading DB2 abends and restarts DB2 1
No new posts how many types of restarts is there i... JCL & VSAM 1
Search our Forums:

Back to Top