Restart job from particular step



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Restart job from particular step

Postby satishmf » Thu Jun 04, 2009 6:52 pm

I have 4 steps.
step01 step02 step03 step04

I would like to restart the job from step03 and execute only step03.

please let me know the syntax.
satishmf
 
Posts: 10
Joined: Wed Jun 03, 2009 4:31 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Restart job from particular step

 

Re: Restart job from particular step

Postby MrSpock » Thu Jun 04, 2009 7:05 pm

The syntax for what? What is the process you need to follow to accomplish this? Normally, you'd edit the JCL and make the necessary changes, then submit it. Or, this is usually handled from within the job scheduling system.
User avatar
MrSpock
Global moderator
 
Posts: 810
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times

Re: Restart job from particular step

Postby dick scherrer » Fri Jun 05, 2009 4:34 am

Hello,

If the job executes a PROCedure, you could submit the job with a restart in step3 and add a condition code check for (0,LE).
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Restart job from particular step

Postby satishmf » Fri Jun 05, 2009 10:40 am

What is the need for adding condition code (0,LE) in the restart step.
Please let me know what does it check for?
satishmf
 
Posts: 10
Joined: Wed Jun 03, 2009 4:31 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Restart job from particular step

Postby dick scherrer » Sat Jun 06, 2009 4:29 am

Hello,

What is the need for adding condition code (0,LE) in the restart step.
This is to prevent step4 from running.

Look here:
http://publibz.boulder.ibm.com/cgi-bin/ ... 680/16.5.5?

A good manual to bookmark. . . Clicking on the little "open book" on the top left of that page will go to the Table of Contents.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Restart job from particular step

Postby satishmf » Mon Jun 08, 2009 12:25 pm

Please let me know if Step03 is to be coded immediately after Jobcard or can it be anywhere in the JCL?
satishmf
 
Posts: 10
Joined: Wed Jun 03, 2009 4:31 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Restart job from particular step

Postby expat » Mon Jun 08, 2009 4:04 pm

Please READ the manual suggested by Dick, try some things yourself, and let us help with any problems
expat
 
Posts: 382
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 1 time

Re: Restart job from particular step

Postby dick scherrer » Tue Jun 09, 2009 4:09 am

Hello,

In the linked manual, you want to read about RESTART.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Restart job from particular step

Postby Bill Dennis » Tue Jun 09, 2009 7:58 pm

Also, utility program IEBEDIT can be used to select certain step(s) from a jobstream for submit. Read about it in DFSMSdfp Utilities or do a search.
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Restart job from particular step

Postby Anuj Dhawan » Mon Jun 29, 2009 2:55 pm

Or for a nasty experiment, "label the code" you want to execute from the JCL,(such .A and .B) and at command pompt type:
SUB .A .B
.
Anuj

These users thanked the author Anuj Dhawan for the post:
Mehdi shri (Mon Jan 21, 2013 11:32 am)
Anuj Dhawan
 
Posts: 274
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times

Next

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post