View previous topic :: View next topic
|
Author |
Message |
lanand_hps
New User
Joined: 05 Dec 2007 Posts: 82 Location: chennai
|
|
|
|
Hi,
I've submitted a job without STEPLIB and JOBLIB under the assumption that the default production libraries will be searched. But it has abended with S806. How to find the default libraries that has been searched for the job?
Thanks |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Ask your sysprogs would be my answer. |
|
Back to top |
|
|
lanand_hps
New User
Joined: 05 Dec 2007 Posts: 82 Location: chennai
|
|
|
|
A user written program was submitted.
Will load libraries not be a part of the default search libraries? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
USER libraries are very seldom part of the SYSTEM library concatenation,
in most shops different applications have different sets of load libraries |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Hi,
lanand_hps wrote: |
A user written program was submitted.
Will load libraries not be a part of the default search libraries? |
No, for a user written program it's the responsibility of user to provide the libraries, would suggest to look into some other JCL at your shop being used for the similar task you are trying to accomplish.. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
You should be able to see the libraries via TSO ISRDDN
Gerry |
|
Back to top |
|
|
NitinP
New User
Joined: 12 May 2008 Posts: 3 Location: Chennai
|
|
|
|
you would be able to see some libraries like ISPF.ISPPROF ,CLISTLIB
and ISPCLIB via TSO ISRDDN etc but that won't help for your problem , You have to provide the DSN for Load module for your program in the JCL |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
gcicchet wrote: |
You should be able to see the libraries via TSO ISRDDN
Gerry |
As Gerry said, use command TSO ISRDDN LINKLIST to see the default libs shown under LINKLIST and LPALIB concatenations. |
|
Back to top |
|
|
lanand_hps
New User
Joined: 05 Dec 2007 Posts: 82 Location: chennai
|
|
|
|
Thanks everyone.. That helped...
But can i not view the libraries that the particular job has searched? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
But can i not view the libraries that the particular job has searched? |
If you can execute the program, you can view the libraries used to execute the program. . .
ISRDDN will very likely not show all of the possible loadlibs that might be included in a joblib or steplib.
Keep in mind that the "default libraries" are those in the linklist, not general application load libraries.
I'm not sure this answers your question. If this does not, please clarify and we'll continue |
|
Back to top |
|
|
lanand_hps
New User
Joined: 05 Dec 2007 Posts: 82 Location: chennai
|
|
|
|
Hi Dick,
I submitted a job to execute a program without JOBLIB and STEPLIB and the job has abended with S806... The module i tried to execute is in production. But it was not picked up which i thought it will.. even without joblib and steplib..
I thought of analysing the job and the libraries it has searched... Wanted to know if i could get the searched LIBRARY information from the job that failed... so that i could place the load in that LINKLIB..
hope i am clear now... |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
You need to talk to your systems programmers for this information. The specific libraries in the LINKLIST are controlled by them; they're not likely to just allow you to add a library to it without a very good reason.
Without a JOBLIB or STEPLIB, the libraries searched will be the LINKLIST libraries. Applications libraries are rarely included in the LINKLIST, not even production libraries. If you have ABEND-AID it might tell you the libraries searched but I can't guarantee that.
The key question is what's the problem with using a JOBLIB or STEPLIB pointing to your application library? It's not a whole lot of effort to add and it completely resolves your problem without requiring systems programmer support. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
for these issues the best practice is to ask Your support,
we do know very little about Your setup and standards
ask about the standard procedures to compile link programs
and, for each application, the name of the libraries to be used as steplib for each stage of development
usually unless the proper permissions are granted it would be difficult for anybody to link programs to the production libraries |
|
Back to top |
|
|
lanand_hps
New User
Joined: 05 Dec 2007 Posts: 82 Location: chennai
|
|
|
|
Quote: |
The key question is what's the problem with using a JOBLIB or STEPLIB pointing to your application library? |
According to our standards, STEPLIB is not allowed. And JOBLIB can have link library. But the problem is, if i give JOBLIB as production link library, the DB2 utilities step (E.g. DSNUTILB step) are abending with S04E. If i am right, the utilites will be present in system library. If i give joblib, it will search only the libraries specified there.. and hence it is abending... |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Anand,
Quote: |
If i give joblib, it will search only the libraries specified there.. and hence it is abending... |
First understand how the program search works before making any statements.
From quickreference-
Code: |
Program Search Order:
The program search order for MVS uses the following program
libraries in the order given:
1) JOB Pack Area (already loaded programs)
2) Private task library, if specified.
3) STEPLIB library, if specified.
4) JOBLIB library, if specified, AND no STEPLIB is
present for the job step.
5) Link Pack Area (PLPA)
6) System Link List (i.e., SYS1.LINKLIB and the data sets
concatenated to it). |
|
|
Back to top |
|
|
lanand_hps
New User
Joined: 05 Dec 2007 Posts: 82 Location: chennai
|
|
|
|
I did read this.. and hence tried to submit the job with JOBLIB assuming the utilities step will pass becuase it will search the system libraries anyway.. But it is not.. and that is the problem i am facing now.. |
|
Back to top |
|
|
lanand_hps
New User
Joined: 05 Dec 2007 Posts: 82 Location: chennai
|
|
|
|
if i submit the job without JOBLIB or STEPLIB, the job is running fine(utilities step).. But it i give a JOBLIB, it is not... I'm not able to comprehend this.. Giving a JOBLIB will make the library search different?
Let me also repeat that...
If i give joblib,
The programs are executing but utilities are abending with S04E..
If i do not give joblib,
The utilites are executing fine but the program is abending with S806. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
lanand_hps,
Quote: |
The programs are executing but utilities are abending with S04E.. |
Are you facing multiple abends??? Do you mind posting the messages you got as well as the jcl you used for that.
Thanks,
Arun |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
Quote: |
If i give joblib,
The programs are executing but utilities are abending with S04E..
If i do not give joblib,
The utilites are executing fine but the program is abending with S806. |
obviously we have to read Your mind to understand what is going on
when the JCLLIB is not there it means that all the load modules being used for the utilities
( db2 utilities clearly ) are in sync
when the JCLLIB is there it means that the DB2 utilities are using garbage from Your shop JCLLIB datasets
as already told You a zillion times speak to Your support and use the steplib approach
Quote: |
According to our standards, STEPLIB is not allowed. |
I wonder who in Your organization decided to enforce such a stupid standard
then You will have to live with Your abends ,
or have the support people cleanup the library content to get rid of the S04E abend
or split the job in many jobs
nothing else we can do |
|
Back to top |
|
|
|