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

Job Lib and Step Lib


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

New User


Joined: 22 Feb 2010
Posts: 14
Location: Hyderabad

PostPosted: Fri Mar 19, 2010 9:22 am
Reply with quote

Hi,

In my JCL programe i have JCLLIB and STEPLIB. Which one will override another. Can any one explain with example.

Thanks in advance.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Mar 19, 2010 9:34 am
Reply with quote

Hello,

Your topic mentions Job Lib and your post mentions JCLLIB and STEPLIB. . .

At the top of the page is a link to "IBM Manuals". Look in the JCL manual for your environment and read about these.

If you find something in the manual that is not clear, post what you found and your doubt about it. Someone will be able to clarify.
Back to top
View user's profile Send private message
chopadevaibhav

New User


Joined: 07 Jan 2008
Posts: 5
Location: pune

PostPosted: Fri Mar 19, 2010 2:18 pm
Reply with quote

If your using JOBLIB and STEPLIB then STEPLIB will override the JOBLIB.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Fri Mar 19, 2010 2:53 pm
Reply with quote

Please not again - this topic is discussed many many times in this Forum. Please search the Forum, a search on key word "joblib" or "jcllib" and "Forum: JCL" must give you enough to go.

Here are some links for your reference:
www.ibmmainframes.com/viewtopic.php?t=16725&highlight=joblib
www.ibmmainframes.com/viewtopic.php?t=44873&highlight=joblib
www.ibmmainframes.com/viewtopic.php?t=32819&highlight=joblib

If after reading through the manuals, as Dick has said, and the links you get - you still have some doubts, post us back with what you've analysed...icon_smile.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Fri Mar 19, 2010 3:03 pm
Reply with quote

chopadevaibhav wrote:
If your using JOBLIB and STEPLIB then STEPLIB will override the JOBLIB.
"Override" has a different meaning when you are talking about JCL - If a STEPLIB DD is specified in a job that also has a JOBLIB, the STEPLIB takes precedence when searching for a program - it does not "override" anything.
Back to top
View user's profile Send private message
parsesource

New User


Joined: 06 Feb 2006
Posts: 97

PostPosted: Fri Mar 19, 2010 9:41 pm
Reply with quote

Anuj Dhawan wrote:
chopadevaibhav wrote:
If your using JOBLIB and STEPLIB then STEPLIB will override the JOBLIB.
"Override" has a different meaning when you are talking about JCL - If a STEPLIB DD is specified in a job that also has a JOBLIB, the STEPLIB takes precedence when searching for a program - it does not "override" anything.


it does. if steplib is present in in a jobstep then joblib is ignored
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Mar 19, 2010 10:14 pm
Reply with quote

Hello,

Quote:
it does. if steplib is present in in a jobstep then joblib is ignored
Well, joblib is ignored, but this is not an override. Override has a specific meaning and this is not it. . .

Please re-read what Anuj posted. . .
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Sat Mar 20, 2010 1:38 am
Reply with quote

I think override can be used to describe this action where one DD replaces the other.

The MVS JCL manual even uses the term "override" when describing how the STEPLIB causes the JOBLIB to be ignored!

It's not like we're discussing generations and versions. icon_wink.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Mar 20, 2010 2:04 am
Reply with quote

Quote:
The MVS JCL manual even uses the term "override" when describing how the STEPLIB causes the JOBLIB to be ignored!
Yup. . . Rather a shame when the vendor manuals slip into vernacular. . . Possibly authored by someone of limited experience.

Possibly, it has also been corrected in the "current" JCL manual:
Quote:
13.2.5 Relationship of a JOBLIB to a STEPLIB

Use a STEPLIB DD statement to define a private library for one job step in a job. If you include a STEPLIB DD statement for a job step and a JOBLIB DD statement for the entire job, the system first searches the step library and then the system library for the requested program. The system ignores the job library for a step that has a STEPLIB DD statement.


My preference would be the more strict terminology rather than letting more things become acceptable just because many (new) people mis-use a term.

However - As "they" say - nothing is sacred icon_smile.gif

d
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 Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
Search our Forums:

Back to Top