Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: What happen if we don't specify Joblib and Steplib in a job
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: 3158
Location: Tucson AZ

PostPosted: Tue Feb 27, 2007 11:52 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Wed Feb 28, 2007 12:24 am    Post subject: Re: What happen if we don't specify Joblib and Steplib in a
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    Post subject:
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

Moderator Team Head


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

PostPosted: Thu Mar 01, 2007 2:21 am    Post subject: Re: What happen if we don't specify Joblib and Steplib in a
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    Post subject:
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    Post subject: Re: What happen if we don't specify Joblib and Steplib in a
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

Site Director


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

PostPosted: Fri Mar 02, 2007 3:33 am    Post subject:
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    Post subject: Re: What happen if we don't specify Joblib and Steplib in a
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: 128
Location: kerala,india

PostPosted: Tue Mar 06, 2007 11:59 pm    Post subject:
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

Site Director


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

PostPosted: Wed Mar 07, 2007 12:25 am    Post subject:
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: 128
Location: kerala,india

PostPosted: Wed Mar 07, 2007 12:44 am    Post subject:
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

Site Director


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

PostPosted: Wed Mar 07, 2007 12:57 am    Post subject:
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: 128
Location: kerala,india

PostPosted: Wed Mar 07, 2007 1:12 am    Post subject:
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

Site Director


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

PostPosted: Wed Mar 07, 2007 2:48 am    Post subject:
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: 128
Location: kerala,india

PostPosted: Wed Mar 07, 2007 9:11 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Wed Mar 07, 2007 11:30 pm    Post subject:
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: 128
Location: kerala,india

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

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

Site Director


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

PostPosted: Thu Mar 08, 2007 11:34 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts what will happen improper PCB order s... srinivasulu.p IMS DB/DC 1 Mon Mar 24, 2014 8:27 am
No new posts What is supposed to happen when the G... superk JCL & VSAM 10 Fri Dec 13, 2013 9:39 pm
No new posts Ttruncation happen in db2 table while... sivasaras DB2 4 Fri Sep 27, 2013 8:53 pm
No new posts what will happen when we say open cursor G1NXU6T DB2 3 Mon Feb 21, 2011 3:47 pm
No new posts Specify a "common" steplib ... Nenad JCL & VSAM 4 Wed Jan 26, 2011 2:04 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us