Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts Can we limit length in concatenation ... balaji81_k DB2 7 Tue Aug 22, 2017 2:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us