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

Which Library will be searched first in the steplib/joblib


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

New User


Joined: 21 Jul 2006
Posts: 18
Location: Pune

PostPosted: Mon Jul 28, 2008 10:48 am
Reply with quote

Hi All

Can anyone explain on what basis libraries mentioned in the STEPLIB/JOBLIB are searched ?

For example.

//STEPLIB DD DSN=LIBRARY1,DISP=SHR
// DD DSN=LIBRARY2,DISP=SHR
.
.
.
// DD DSN=LIBRARY10,DISP=SHR

Then from these 10 libraries which one will be searched first.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Jul 28, 2008 11:20 am
Reply with quote

the manuals will explain better,

but, quick and dirty,
in any DD concatenation, the datasets/libraries
will be processed/searched in the order they are specified

but, just curious, why do You ask?
are You doubting/wondering about some kind of random search icon_smile.gif
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Mon Jul 28, 2008 12:08 pm
Reply with quote

amajhi,

If both JOBLIB and STEPLIB are mentioned, then STEPLIB overrides the JOBLIB and the libraries mentioned in the STEPLIB would be checked for that step.

It depends on the order in which they are mentioned in the JCL.
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: Mon Jul 28, 2008 9:10 pm
Reply with quote

Not only will STEPLIB data sets override JOBLIB ones, but they actually replace them, but you'll still get the system defined link list libraries. This is important to remember if you define a STEPLIB but still need one or more of the libraries defined in the JOBLIB statement.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Tue Jul 29, 2008 12:29 pm
Reply with quote

Hi,

And, these things has been discussed many times before, here is one such link-

ibmmainframes.com/viewtopic.php?t=16725&highlight=steplib


Might be you are intrested in these links..

JCLLIB Definition: publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B660/19.0?DT=20050713232151

JCLLIB Examples: publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B660/19.1.8?SHELF=&DT=20050713232151&CASE=

STEPLIB Definition: publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B660/13.5?DT=20050713232151

STEPLIB Examples: publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B660/13.5.6?SHELF=&DT=20050713232151&CASE=
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 Calling an Open C library function in... CICS 1
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts Access library name in REXX CLIST & REXX 6
Search our Forums:

Back to Top