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

Using RESTART to execute selected steps only.


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

New User


Joined: 30 Aug 2005
Posts: 1

PostPosted: Tue Aug 30, 2005 4:25 pm
Reply with quote

How do I use the RESTART parameter to execute a job with 10 steps, of which I need to execute step1 then execute step9, without executing the steps in-between.
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Tue Aug 30, 2005 5:06 pm
Reply with quote

Try to visit this link or search in this forum for IEBEDIT
http://ibmmainframes.com/viewtopic.php?t=4917&highlight=iebedit

I hope in this help.
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Tue Aug 30, 2005 5:08 pm
Reply with quote

Hi,

You can use Cond parameter for Step2 to step8 like

COND.STEP01=(0,LE),

Because of the COND parameter, all the 7 steps will be skipped since this condition will alwayz be true

And you can execute only step1 and step9.

Regards
Rupesh
Back to top
View user's profile Send private message
vicky10001
Warnings : 1

Active User


Joined: 13 Jul 2005
Posts: 136

PostPosted: Tue Aug 30, 2005 5:14 pm
Reply with quote

USE RESTART EXECUTE START STEP AND END EXECUTE ADD ONE LINE // (NULL INDICATOR)
EX:


RESTART=STEPNAME.PROCNAME

//
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Tue Aug 30, 2005 5:32 pm
Reply with quote

I think that if you want to use the RESTART parameter you will able to run or only one step(using also a COND) or all the step from that specified in RESTART.

The "NULL INDICATOR" stop your job after that statement.

I hope in this help
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Tue Aug 30, 2005 7:31 pm
Reply with quote

Hi,

Is it possible to start two different step in a job using RESTAT parameter?

As per my understanding we use RESTART parameter to restart the job from particular step and execute all next Step.


Regards
Rupesh
Back to top
View user's profile Send private message
vicky10001
Warnings : 1

Active User


Joined: 13 Jul 2005
Posts: 136

PostPosted: Wed Aug 31, 2005 2:29 pm
Reply with quote

Its is correct
Back to top
View user's profile Send private message
michaelraj

New User


Joined: 01 Sep 2005
Posts: 43
Location: Bangalore

PostPosted: Fri Sep 02, 2005 5:15 pm
Reply with quote

Hi Antony,

If you want to run the step1 and then step9 , there is no need of Restart. As the first step will be executed automatically, in Step1 code as COND=(0,LE,STEP9), then after executing step1 it will go for step9 to execute it. Then in step10 code as COND=(21,LE), though the return code will be less than 21 only. Here cond code is satisfied so the step will not be executed.

The COND parameter in the EXEC statement : The COND parameter can perform a test before a step begins execution against the return codes issued by previous steps. If a test is satisfied, the step will not be executed.

Till now I think everything is ok as per our assumption. If we want to execute step3 and step9 only then we have to use Restart = step3 in JOB card. Then again code COND=(0,LE,STEP9) in step3 and follow the same.

Regards,
MIKE.
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 Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Fetch data from programs execute (dat... DB2 3
No new posts CA7 deleting files in steps after job... CA Products 4
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
No new posts Evaluate variable to execute a jcl step JCL & VSAM 3
Search our Forums:

Back to Top