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

If both STEPLIB and JOBLIB card are present in a JCL


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

New User


Joined: 21 Jan 2006
Posts: 6

PostPosted: Mon Jan 23, 2006 8:47 pm
Reply with quote

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
View user's profile Send private message
Gautam512

Active User


Joined: 05 Oct 2005
Posts: 308
Location: Vizag / US

PostPosted: Mon Jan 23, 2006 8:55 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Jan 23, 2006 8:55 pm
Reply with quote

What does the manual say?

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B660/13.3?DT=20050713232151
Back to top
View user's profile Send private message
ayayu

New User


Joined: 21 Jan 2006
Posts: 6

PostPosted: Mon Jan 23, 2006 9:06 pm
Reply with quote

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
View user's profile Send private message
Gautam512

Active User


Joined: 05 Oct 2005
Posts: 308
Location: Vizag / US

PostPosted: Wed Jan 25, 2006 9:06 pm
Reply with quote

Most welcome.......
Back to top
View user's profile Send private message
anilbatta

New User


Joined: 13 Nov 2005
Posts: 22

PostPosted: Wed Jan 25, 2006 9:37 pm
Reply with quote

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
View user's profile Send private message
Gautam512

Active User


Joined: 05 Oct 2005
Posts: 308
Location: Vizag / US

PostPosted: Wed Jan 25, 2006 10:26 pm
Reply with quote

Hi Anil,

I was not the one who has asked the question , just go thru the discussion once.
Back to top
View user's profile Send private message
balusengodan

New User


Joined: 01 Mar 2005
Posts: 15
Location: chennai

PostPosted: Fri Jan 27, 2006 10:43 am
Reply with quote

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
View user's profile Send private message
urnarendra

New User


Joined: 29 Jun 2005
Posts: 7

PostPosted: Fri Jan 27, 2006 7:29 pm
Reply with quote

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
View user's profile Send private message
Gautam512

Active User


Joined: 05 Oct 2005
Posts: 308
Location: Vizag / US

PostPosted: Sun Feb 26, 2006 11:47 pm
Reply with quote

correct......
Back to top
View user's profile Send private message
kushal

New User


Joined: 27 Feb 2006
Posts: 1

PostPosted: Mon Feb 27, 2006 9:06 pm
Reply with quote

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
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Thu Mar 02, 2006 3:03 pm
Reply with quote

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
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 JCL sort card - get first day and las... JCL & VSAM 9
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
No new posts Need suggestion on a sort card DFSORT/ICETOOL 10
No new posts Want to mask Middle 8 Digits of Debit... COBOL Programming 3
No new posts JCL sort card for file creation condi... DFSORT/ICETOOL 4
Search our Forums:

Back to Top