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

Run steps from 100 to 130 in procedure


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

New User


Joined: 11 Oct 2013
Posts: 37
Location: India

PostPosted: Thu Nov 07, 2013 7:33 pm
Reply with quote

Dear experts.

I have a question regarding overriding..
Question is as follows
if i have a job , it calling a proc which have 200 steps in it. My need it to run
steps from 100 to 130 only without doing any changes in jcl.
How can i achieve this.

My approach....As per my knowledge, I can restart the step in procedure, but i do not know how to stop it after 130.



Regards.
Deepak
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Nov 07, 2013 7:53 pm
Reply with quote

200 steps! That sounds easy to grasp for the human mind. Especially at 02:00.

OK, they probably won't let you cut it all up, but why don't you make a new PROC for 100-130, use that PROC in your job, and update the stupid one to use that PROC in place of the steps 100-130.

Don't you have people who look after the JCL anyway? Sounds like Production. 200 steps! Why?
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Nov 07, 2013 8:59 pm
Reply with quote

I guess you could put an override into step 131 for a non-existent dataset (if using JES2). Creating a temporary proc, although the more 'legitimate' way to go can take a bit of time as you get rid of any backward references, ensure you have the correct symbolics etc.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Thu Nov 07, 2013 9:14 pm
Reply with quote

Kmr.deepakcs wrote:
if i have a job , it calling a proc which have 200 steps in it. My need it to run
steps from 100 to 130 only without doing any changes in jcl.
How can i achieve this.

You can't, unless you are using "changes" and "jcl" (sic) with significantly different meanings from their usual ones.

As Mr. Woodger has hinted, the proper way to go about this is to junk your current JCL and start over with a proper design.
Back to top
View user's profile Send private message
Kmr.deepakcs

New User


Joined: 11 Oct 2013
Posts: 37
Location: India

PostPosted: Thu Nov 07, 2013 9:23 pm
Reply with quote

thanks
@Akatsukami for reply
Back to top
View user's profile Send private message
seagull

New User


Joined: 28 May 2007
Posts: 24
Location: Dublin

PostPosted: Wed Nov 20, 2013 11:19 pm
Reply with quote

You could do it with COND parameters on all your steps.
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Thu Nov 21, 2013 12:38 am
Reply with quote

That would be "changing" the JCL and/or PROC, and as Akatsukami and others have said, "can't be done without changing something."
Back to top
View user's profile Send private message
TheMFKid

New User


Joined: 20 Nov 2013
Posts: 91
Location: India

PostPosted: Thu Nov 21, 2013 11:20 am
Reply with quote

You might also want to check out IEBEDIT utility if that can satisfy your requirement to some extent.
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 CA7 deleting files in steps after job... CA Products 4
No new posts Invoke stored procedure via batch JCL. DB2 2
No new posts Calling COBOL DB2 program from a COBO... COBOL Programming 2
No new posts Cond parameter and Rc code of a proce... JCL & VSAM 5
This topic is locked: you cannot edit posts or make replies. Internal Autonomous Stored Procedure ... DB2 6
Search our Forums:

Back to Top