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

Restart Query to run from step 100 to step 150


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
amity.vikas

New User


Joined: 11 Jan 2006
Posts: 6

PostPosted: Thu Aug 02, 2007 2:58 pm
Reply with quote

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
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Aug 02, 2007 3:12 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Aug 02, 2007 3:33 pm
Reply with quote

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
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Aug 02, 2007 3:39 pm
Reply with quote

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
View user's profile Send private message
amity.vikas

New User


Joined: 11 Jan 2006
Posts: 6

PostPosted: Thu Aug 02, 2007 3:45 pm
Reply with 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??
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Aug 02, 2007 3:54 pm
Reply with quote

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
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Thu Aug 02, 2007 9:56 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Aug 03, 2007 12:14 am
Reply with quote

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..... icon_redface.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Aug 03, 2007 11:37 am
Reply with quote

Douglas Wilder wrote:
If you do not want to change the proc you cannot over-ride the program name in a proc unless it is a symbolic.
Hi,

I think below post give some insight how to chnage the PGM in EXEC even if it is hard-coded.
www.ibmmainframes.com/viewtopic.php?t=22504&highlight=override

Hope this helps.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts RC query -Time column CA Products 3
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts Dynamically pass table name to a sele... DB2 2
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts Query on edit primary command CLIST & REXX 5
Search our Forums:

Back to Top