|
|
| Author |
Message |
srinivas12
New User
Joined: 11 Apr 2005 Posts: 6 Location: hyderabad
|
|
|
|
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 |
|
 |
References
|
|
 |
anuradha
Global Moderator
Joined: 06 Jan 2004 Posts: 257
|
|
|
|
| You can use COND parameter accordingly... |
|
| Back to top |
|
 |
David P
Active User
Joined: 11 Apr 2005 Posts: 110 Location: Cincinnati Ohio
|
|
|
|
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 |
|
 |
vinayakaa
New User
Joined: 20 Mar 2005 Posts: 9 Location: Bangalore
|
|
|
|
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 |
|
 |
andycool
Active User
Joined: 12 Apr 2005 Posts: 65
|
|
|
|
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 |
|
 |
die7nadal
Active User
Joined: 23 Mar 2005 Posts: 154
|
|
|
|
| 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 |
|
 |
|
|