Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Regarding restart of a step

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
srinivas12

New User


Joined: 11 Apr 2005
Posts: 6
Location: hyderabad

PostPosted: Mon Apr 11, 2005 2:37 pm    Post subject: Regarding restart of a step
Reply with quote

Hi
Can anyone tell me how to execute only a particular jobstep in a JCl.
Restart from a step executes all the steps starting from the mentioned step.
Back to top
View user's profile Send private message
References
PostPosted: Mon Apr 11, 2005 2:37 pm    Post subject: Re: Regarding restart of a step Reply with quote

anuradha

Global Moderator


Joined: 06 Jan 2004
Posts: 257

PostPosted: Mon Apr 11, 2005 4:49 pm    Post subject:
Reply with quote

You can use COND parameter accordingly...
Back to top
View user's profile Send private message
David P

Active User


Joined: 11 Apr 2005
Posts: 110
Location: Cincinnati Ohio

PostPosted: Mon Apr 11, 2005 5:48 pm    Post subject:
Reply with quote

Hi Srinivas,
You can also do it by giving a restart from the step you want to begin your
execution and just after that step put a null statement.
This would avoid coding the condition parameters for all the remaining steps that you do not want to execute.
Hope this would work.

thanks
david
Back to top
View user's profile Send private message
vinayakaa

New User


Joined: 20 Mar 2005
Posts: 9
Location: Bangalore

PostPosted: Wed Apr 13, 2005 12:26 pm    Post subject:
Reply with quote

Hi Srinivas

open your job in view mode put the restart step for the step which you want to execute and put a null immedeately after that step. this will serve your purpose and will not disturb your Jcl as you are in view mode.

Thanks,
V
Back to top
View user's profile Send private message
andycool

Active User


Joined: 12 Apr 2005
Posts: 65

PostPosted: Mon Apr 18, 2005 8:18 pm    Post subject:
Reply with quote

Hi Shrinivas,
U can use the "Restart=jobname.stepname" parameter in your job statement.

In case if your jobname is job1 and stepname is step1; it shud appear like "Restart=job1.step1"

===========================
//user1 JOB 'runjob', class=a, msgclass=a
// time=300, restart=job1.step1
===========================

With this you can restart the job at any step you like. The job will start executing from the mentioned step and down the line.

It is always a good habit to code the Restart parameter in your job.

Hope this solves your query, get back if you still have doubts.

Regards,
Back to top
View user's profile Send private message
die7nadal

Active User


Joined: 23 Mar 2005
Posts: 154

PostPosted: Tue Apr 19, 2005 1:07 am    Post subject: Re: Regarding restart of a step
Reply with quote

srinivas12 wrote:
Hi
Can anyone tell me how to execute only a particular jobstep in a JCl.
Restart from a step executes all the steps starting from the mentioned step.


Srinivas,
Try coding
RESTART=STEP,COND=(0,LE)
This will execute only the particular STEP in the RESTART Parm.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1