Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Restart Query to run from step 100 to step 150

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Restart Query to run from step 100 to step 150
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: 1439
Location: Bangalore,India

PostPosted: Thu Aug 02, 2007 3:12 pm    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Thu Aug 02, 2007 3:33 pm    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Thu Aug 02, 2007 3:39 pm    Post subject:
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    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Thu Aug 02, 2007 3:54 pm    Post subject:
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Fri Aug 03, 2007 12:14 am    Post subject:
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

Senior Member


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

PostPosted: Fri Aug 03, 2007 11:37 am    Post subject:
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.
http://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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Join in SQL Query vickey_dw DB2 2 Tue Jan 17, 2017 12:15 am
This topic is locked: you cannot edit posts or make replies. MQ setup query mohitsaini Java & MQSeries 4 Sun Jan 08, 2017 1:53 am
No new posts DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us