Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Using RESTART to execute selected steps only.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Using RESTART to execute selected steps only.
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    Post subject:
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: 464

PostPosted: Tue Aug 30, 2005 5:08 pm    Post subject: Re: Using RESTART to execute selected steps only.
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    Post subject: Re: Using RESTART to execute selected steps only.
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    Post subject:
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: 464

PostPosted: Tue Aug 30, 2005 7:31 pm    Post subject: Re: Using RESTART to execute selected steps only.
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts execute APP if they are not ADDRESS T... italo_pm CLIST & REXX 3 Fri Aug 12, 2016 2:15 am
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
No new posts Reading selected volumes of a multi-v... RickBig JCL & VSAM 6 Wed Jul 13, 2016 7:26 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us