Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
If both STEPLIB and JOBLIB card are present in a JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: If both STEPLIB and JOBLIB card are present in a JCL
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: 309
Location: Vizag / US

PostPosted: Mon Jan 23, 2006 8:55 pm    Post subject: Re: jcl question
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

Moderator Team Head


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

PostPosted: Mon Jan 23, 2006 8:55 pm    Post subject: Re: jcl question
Reply with quote

What does the manual say?

http://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    Post subject:
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: 309
Location: Vizag / US

PostPosted: Wed Jan 25, 2006 9:06 pm    Post subject: Re: jcl question
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    Post subject: Re: jcl question
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: 309
Location: Vizag / US

PostPosted: Wed Jan 25, 2006 10:26 pm    Post subject: Re: jcl question
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    Post subject:
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    Post subject:
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: 309
Location: Vizag / US

PostPosted: Sun Feb 26, 2006 11:47 pm    Post subject:
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    Post subject:
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    Post subject:
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    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 sending email from jcl using the mail... niloyarp JCL & VSAM 5 Tue Oct 10, 2017 12:32 pm
No new posts Changing sort Card Dynamically vickey_dw DFSORT/ICETOOL 5 Sat Aug 19, 2017 2:33 pm
No new posts Record Not found in AlX but record re... mukun264 COBOL Programming 7 Fri Mar 24, 2017 9:28 am
No new posts Sort Card to Remove Duplicate records... raj4neo SYNCSORT 2 Wed Jan 25, 2017 4:44 am
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us