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

Regarding restart of a step


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

New User


Joined: 11 Apr 2005
Posts: 6
Location: hyderabad

PostPosted: Mon Apr 11, 2005 2:37 pm
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
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Mon Apr 11, 2005 4:49 pm
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: 106
Location: Cincinnati Ohio

PostPosted: Mon Apr 11, 2005 5:48 pm
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: 8
Location: Bangalore

PostPosted: Wed Apr 13, 2005 12:26 pm
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

New User


Joined: 12 Apr 2005
Posts: 64

PostPosted: Mon Apr 18, 2005 8:18 pm
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: 156

PostPosted: Tue Apr 19, 2005 1:07 am
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
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 Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
Search our Forums:

Back to Top