View previous topic :: View next topic
|
Author |
Message |
amajhi
New User
Joined: 21 Jul 2006 Posts: 18 Location: Pune
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
Back to top |
|
|
|