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

Overriding JCL which calls a cataloged procedure


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

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Fri May 11, 2007 10:06 am
Reply with quote

i have a JCL which calls a cataloged procedure (A).
The JCL has a JOBLIB specified.

In Step1 of the cataloged proc (A), there is a STEPLIB.
Step 1 executes program B.

If B is not found in STEPLIB of Step1 of A, will the JCL search for the pgm B in the JOBLIB of the JCL or, will it abend?
Back to top
View user's profile Send private message
rz061m

New User


Joined: 03 Mar 2006
Posts: 48
Location: Chennai

PostPosted: Fri May 11, 2007 10:29 am
Reply with quote

Hi,

If you specify STEPLIb, then the program will ignore the JOBLIB. And if the program is not found in STEPLIB, the program will abend.

Thanks,
Karthik. P
Back to top
View user's profile Send private message
pcoreddy

New User


Joined: 14 Mar 2007
Posts: 24
Location: Mysore

PostPosted: Fri May 11, 2007 11:58 am
Reply with quote

it will abend
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri May 11, 2007 12:13 pm
Reply with quote

I thought that the STEPLIB would override the JOBLIB, but in the case of the module not found in STEPLIB then JOBLIB would be searched.

OK, so I'm not a programmer, so how about asking pingte to perform a test and let us all know the definitive answer. After all, it is his question.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Fri May 11, 2007 2:00 pm
Reply with quote

It will abend with s806, it will not search in JOBLIB when STEPLIB is specified.
Back to top
View user's profile Send private message
rameshfoa

New User


Joined: 05 Apr 2007
Posts: 27
Location: chennai

PostPosted: Fri May 11, 2007 3:55 pm
Reply with quote

yes..the program will abend with s806...if the module not found in all the concatenated libraries in steplib
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Fri May 11, 2007 5:38 pm
Reply with quote

In addition - the fact that you are using a PROC is irrelevant.
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 COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Access to non cataloged VSAM file JCL & VSAM 18
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
Search our Forums:

Back to Top