View previous topic :: View next topic
|
Author |
Message |
amity.vikas
New User
Joined: 11 Jan 2006 Posts: 6
|
|
|
|
A job, say ABC, is calling a proc XYZ. Assuming that XYZ has 255 jobsteps starting from STEP001 to STEP255. The requirement is to restart it from STEP100 which will run till STEP150.
Vikas |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Vikas,
Quote: |
The requirement is to restart it from STEP100 which will run till STEP150 |
Restart from STEP100 is possible. But making it to run till STEP150 only is not possible without changing the job or proc. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
murmohk1 wrote: |
But making it to run till STEP150 only is not possible without changing the job or proc. |
Couldn't you replace the program nane in step151 with something that will abend? |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
William,
Quote: |
Couldn't you replace the program nane in step151 with something that will abend? |
Thanks for providing one more way to run the job till STEP150 only. In this method no need to edit job/proc. |
|
Back to top |
|
|
amity.vikas
New User
Joined: 11 Jan 2006 Posts: 6
|
|
|
|
This way(by overriding it) i think we can put a null line also after STEP150?? However this will also be a trick. Is there any other proper way like using some commond or keyword?? |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Quote: |
This way(by overriding it) i think we can put a null line also after STEP150?? However this will also be a trick. Is there any other proper way like using some commond or keyword?? |
Again you are editing the proc. |
|
Back to top |
|
|
Douglas Wilder
Active User
Joined: 28 Nov 2006 Posts: 305 Location: Deerfield IL
|
|
|
|
If you do not want to change the proc you cannot over-ride the program name in a proc unless it is a symbolic. That is a good reason to make all programs in procs symbolic. If it is a symbolic you could over-ride it to something that does not exist. Another way is to over-ride adding or changing a DD to a DSN that does not exist with a disp like shr.
Either of these ways would get a JCL error and not execute the following steps.
If you are changing the proc delete or comment out the steps you do not want to execute. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Quote: |
Rules for Modifying EXEC Parameters
v You cannot modify a PGM parameter. |
Well caught, after double checking your statement (just to prove you wrong) I find that it is indeed me who is wrong..... |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
Back to top |
|
|
|