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
 
Overriding JCL which calls a cataloged procedure

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Overriding JCL which calls a cataloged procedure
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    Post subject:
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    Post subject: Re: Overriding JCL which calls a cataloged procedure
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri May 11, 2007 12:13 pm    Post subject:
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: 686
Location: Earth

PostPosted: Fri May 11, 2007 2:00 pm    Post subject:
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    Post subject:
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

Active Member


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

PostPosted: Fri May 11, 2007 5:38 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts DFSORT - Overriding default option TU... Steve Ironmonger DFSORT/ICETOOL 3 Tue Apr 04, 2017 3:54 pm
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm

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