View previous topic :: View next topic
|
Author |
Message |
ayayu
New User
Joined: 21 Jan 2006 Posts: 6
|
|
|
|
If both STEPLIB and JOBLIB card are present in a JCL job what will happen?
is JOBLIB searched first and then STEPLIB after? or only STEPLIB will be searched?
Thank you. |
|
Back to top |
|
|
Gautam512
Active User
Joined: 05 Oct 2005 Posts: 308 Location: Vizag / US
|
|
|
|
Hi,
To specify the location of the program that is specified in the EXEC statement, both JOBLIB and STEPLIB statements will be used.
JOBLIB belongs to all the steps in the Job and should be immediately followed by job statement. Where as STEPLIB is available to the particular step only.
STEPLIB has got higher priority over JOBLIB.
Hope this clarifies ur question.... |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
ayayu
New User
Joined: 21 Jan 2006 Posts: 6
|
|
|
|
thank you guys.
the book says "The system ignores the job library for a step that has a STEPLIB DD statement."
so im assuming only the STEPLIB is searched. Thank you again. |
|
Back to top |
|
|
Gautam512
Active User
Joined: 05 Oct 2005 Posts: 308 Location: Vizag / US
|
|
|
|
Most welcome....... |
|
Back to top |
|
|
anilbatta
New User
Joined: 13 Nov 2005 Posts: 22
|
|
|
|
Hi Gautam,
In both the cases STEPLIB and JOBLIB libraries, STEPLIB will be considered on high priority basis and after that JOBLIB will process.
Regards
AnilBatta |
|
Back to top |
|
|
Gautam512
Active User
Joined: 05 Oct 2005 Posts: 308 Location: Vizag / US
|
|
|
|
Hi Anil,
I was not the one who has asked the question , just go thru the discussion once. |
|
Back to top |
|
|
balusengodan
New User
Joined: 01 Mar 2005 Posts: 15 Location: chennai
|
|
|
|
hi friend i this case if you used both the joblib and steplib steplib will be having more priority than job lib first it will search it in steplib library then it will go for joblib
ok
thank you
balusengodan |
|
Back to top |
|
|
urnarendra
New User
Joined: 29 Jun 2005 Posts: 7
|
|
|
|
Hi guys,
If we specify both steplib and joblib in one job..simple joblib is ignored....it will search only steplib....that time it wont search joblib...
if i wrong correct it
cheers,
K.N.CHOWDARY |
|
Back to top |
|
|
Gautam512
Active User
Joined: 05 Oct 2005 Posts: 308 Location: Vizag / US
|
|
|
|
correct...... |
|
Back to top |
|
|
kushal
New User
Joined: 27 Feb 2006 Posts: 1
|
|
|
|
hey guys this is what actually happens...... joblib will be smply ignored....it will not be searched at all.
13.3.4 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.
kushal |
|
Back to top |
|
|
martin9
Active User
Joined: 01 Mar 2006 Posts: 290 Location: Basel, Switzerland
|
|
|
|
hy,
referr to the z/OS library search order...
JPA (Job Pack Area)
STEPLIB/JOBLIB/TASKLIB
LPA (Link Pack Area)
LLA (Library Look Aside)
but read the manual for detailed information
martin9 |
|
Back to top |
|
|
|