Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Which Library will be searched first in the steplib/joblib

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Which Library will be searched first in the steplib/joblib
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Mon Jul 28, 2008 11:20 am    Post subject: Reply to: Which Library will be searched first in the stepli
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: 1288
Location: Chennai, India

PostPosted: Mon Jul 28, 2008 12:08 pm    Post subject: Reply to: Which Library will be searched first in the stepli
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: 1239
Location: Richfield, MN, USA

PostPosted: Mon Jul 28, 2008 9:10 pm    Post subject:
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

Senior Member


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

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

Hi,

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

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


Might be you are intrested in these links..

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

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

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

STEPLIB Examples: http://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    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 how to find clist's or view library Andrew Hsia CLIST & REXX 4 Tue Jun 28, 2016 6:07 pm
No new posts Syntax to create new tableBASE library Sumeendar IBM Tools 1 Tue Sep 15, 2015 6:25 pm
No new posts Search Member Name in Library (DSORG=... jackare JCL & VSAM 9 Thu Jun 25, 2015 8:15 pm
No new posts how to exec rexx for all member libra... italo_pm CLIST & REXX 6 Sat Apr 25, 2015 1:20 am
No new posts SYSIN PDS Library Concatenation Brad McCoy JCL & VSAM 6 Mon Jul 07, 2014 11:49 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us