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

What happen if we don't specify Joblib and Steplib in a job


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Shrikanth
Warnings : 1

New User


Joined: 26 Feb 2007
Posts: 5
Location: Bangalore

PostPosted: Tue Feb 27, 2007 11:31 pm
Reply with quote

Hi All,

i have query, what happeneds if we don't specify joblib and steplib in a job, and what is the error message will pop up.? Can some body help me in this?

Appreicate your help!
Shrikanth
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Feb 27, 2007 11:52 pm
Reply with quote

Possibly an error about not finding what the joblib should have been pointing to. The same goes for the steplib.
You do know what type of facility each points to, don't you?
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Wed Feb 28, 2007 12:24 am
Reply with quote

Kind of a silly question. Normally JOBLIB and STEPLIB aren't used in production applications.
Back to top
View user's profile Send private message
prav_06
Warnings : 1

Active User


Joined: 13 Dec 2005
Posts: 154
Location: The Netherlands

PostPosted: Wed Feb 28, 2007 12:38 pm
Reply with quote

Srikanth,
If ya don't specify STEPLIB or JOBLIB , the system would start searching in the default libraries like sys1.linklib etc.., and if the system could not find the program u r trying to execute it would end up giving a System Abend 806, Load module not found.

SUPERk
Quote:
Normally JOBLIB and STEPLIB aren't used in production applications.


this is not true in all the cases, we do have production load modules stored inside diff. PDS's which are picked up by steplib or joblib st.

Thamilzan.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Thu Mar 01, 2007 2:21 am
Reply with quote

Thamilzan, is there a particular business reason why the libraries are split that way, and why they're not defined to the LINKLIST?
Back to top
View user's profile Send private message
prav_06
Warnings : 1

Active User


Joined: 13 Dec 2005
Posts: 154
Location: The Netherlands

PostPosted: Thu Mar 01, 2007 5:47 pm
Reply with quote

Superk,
There is no specific business reason, I have my prod. load lib in all the jobs given in either steplib or joblib, now if i want to test a particular pgm for development purpose i will just override the JOBLIB or STEPLIB st. which is inside the PROC, and more than that , I had enquired about this senario to my peer's as well as friends who work on mainframes, they all have a steplib or joblib in their PRODUCTION jcl's and PROC's.

Thamilzan.
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Thu Mar 01, 2007 6:32 pm
Reply with quote

superk wrote:
Kind of a silly question. Normally JOBLIB and STEPLIB aren't used in production applications.


Agree with that NORMALLY...
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Fri Mar 02, 2007 3:33 am
Reply with quote

Hello,

At several of my larger sites, STEPLIBs are used. These sites are "service providers" and (to save on licensing fees and physical considerations) run a few very large machines instead of several mid-sized machines.

When one machine is running processes for multiple clients, it is common for each client to have their own loadlib(s) and proclib(s). Sometimes, the same module name appears in completely unlike applications. System software libraries are in the linklst.

Most of my sites either discourage or completely prevent the use of JOBLIBs - for performance. A few of the studies i worked on showed that three of the most often executed programs are IEFBR14, IEBGENER, and "the sort". Sometimes there are a few "local favorites" utilities as well. Given that these are usually NOT in any of the "user" loadlibs, there is no reason to search those libs which using JOBLIB would do.
Back to top
View user's profile Send private message
jayaraj313
Warnings : 1

New User


Joined: 19 Sep 2006
Posts: 3

PostPosted: Tue Mar 06, 2007 10:04 am
Reply with quote

Hey Srinath!!!!!
If you are not specifying steplib&joblib then compiler will search in linklisi.That is sys1.linklib....
Back to top
View user's profile Send private message
cobolunni

Active User


Joined: 07 Aug 2006
Posts: 127
Location: kerala,india

PostPosted: Tue Mar 06, 2007 11:59 pm
Reply with quote

Yes actually steplib and joblib is used to override the default libraries
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Wed Mar 07, 2007 12:25 am
Reply with quote

Hello,

The job/step lib statements do not override the default libraries (also known as the link list). They are searched before the linklst.

This is why when executing an IBM utility or some other linklst'ed module, it adds overhead to search libraries where they will never be.
Back to top
View user's profile Send private message
cobolunni

Active User


Joined: 07 Aug 2006
Posts: 127
Location: kerala,india

PostPosted: Wed Mar 07, 2007 12:44 am
Reply with quote

yes right but actually it is a type of overriding because jes will check the libraries specified before checking default library
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Wed Mar 07, 2007 12:57 am
Reply with quote

Hello,

Sorry to disagree, but i do not believe it a type of overriding - overriding implies using one thing instead of another - the original is not used at all as in when we override a DD statement or a COND=. For JCL, i believe it is safe to say (someone will correct me if it is not icon_smile.gif ) that the term override is used in connection with PROCedures.

Joblib/steplib do not cause the linklib to not be searched. . .

Now, a steplib, in a proc, could have an override. . . icon_smile.gif
Back to top
View user's profile Send private message
cobolunni

Active User


Joined: 07 Aug 2006
Posts: 127
Location: kerala,india

PostPosted: Wed Mar 07, 2007 1:12 am
Reply with quote

dick scherrer wrote:
Now, a steplib, in a proc, could have an override. . . icon_smile.gif


yes but still even using steplib if the item not found there then it will look for job lib isn't it then how can you say it as overriding
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Wed Mar 07, 2007 2:48 am
Reply with quote

Hello,

Joblib/Steplib determine library search order.

I believe there is a difference between the order of libraries searched and an override. As i mentioned earlier, you could override a steplib. . . .


If some folks would like to refer to that as an override, well, OK. Won't worry me. icon_smile.gif
Back to top
View user's profile Send private message
cobolunni

Active User


Joined: 07 Aug 2006
Posts: 127
Location: kerala,india

PostPosted: Wed Mar 07, 2007 9:11 pm
Reply with quote

yes nice , but you doesn't answer my question. From your point of view how the step lib becomes an override since thats also only makes difference in order of search
Back to top
View user's profile Send private message
deepak.vl

New User


Joined: 17 Feb 2007
Posts: 38
Location: Hyderabad

PostPosted: Wed Mar 07, 2007 10:56 pm
Reply with quote

I agree with Dick..there is a difference the order of libraries searched and an override
With in JOBLIB/STEPLIB, JOBLIB 'OVERRIDES' STEPLIB. But with in JOBLIB/STEPLIB and other default libraries, it is the order of search.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Wed Mar 07, 2007 11:30 pm
Reply with quote

Hello cobolunni,

If you re-read what i posted, you will notice that i did not say
Quote:
. . . how the step lib becomes an override

What i did say was that a steplib (which is just another DD in a step) could be overriden.

Once that has happened, the "new" (rather than the original) steplib participates in the load module search - it still does not "override" the linklst.
Back to top
View user's profile Send private message
cobolunni

Active User


Joined: 07 Aug 2006
Posts: 127
Location: kerala,india

PostPosted: Thu Mar 08, 2007 11:19 pm
Reply with quote

Ok dick thanks for your data
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Thu Mar 08, 2007 11:34 pm
Reply with quote

You're welcome icon_smile.gif
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Difference between joblib and steplib JCL & VSAM 2
No new posts What will happen if we dont code STOP... COBOL Programming 4
No new posts loadmodules priority in Steplib JCL & VSAM 4
No new posts what will happen improper PCB order s... IMS DB/DC 1
No new posts What is supposed to happen when the G... JCL & VSAM 10
Search our Forums:

Back to Top