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
 

 

How to find the default system libraries

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
lanand_hps

New User


Joined: 05 Dec 2007
Posts: 82
Location: chennai

PostPosted: Thu Aug 07, 2008 1:19 pm    Post subject: How to find the default system libraries
Reply with quote

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

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Aug 07, 2008 1:37 pm    Post subject:
Reply with quote

Ask your sysprogs would be my answer.
Back to top
View user's profile Send private message
lanand_hps

New User


Joined: 05 Dec 2007
Posts: 82
Location: chennai

PostPosted: Thu Aug 07, 2008 3:55 pm    Post subject:
Reply with quote

A user written program was submitted.
Will load libraries not be a part of the default search libraries?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Thu Aug 07, 2008 3:59 pm    Post subject: Reply to: How to find the default system libraries
Reply with quote

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

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Aug 07, 2008 4:01 pm    Post subject:
Reply with quote

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

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Thu Aug 07, 2008 6:09 pm    Post subject:
Reply with quote

You should be able to see the libraries via TSO ISRDDN


Gerry
Back to top
View user's profile Send private message
NitinP

New User


Joined: 12 May 2008
Posts: 3
Location: Chennai

PostPosted: Thu Aug 07, 2008 7:21 pm    Post subject: Reply to: How to find the default system libraries
Reply with quote

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

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Thu Aug 07, 2008 8:03 pm    Post subject:
Reply with quote

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

New User


Joined: 05 Dec 2007
Posts: 82
Location: chennai

PostPosted: Fri Aug 08, 2008 8:57 am    Post subject:
Reply with quote

Thanks everyone.. That helped...
But can i not view the libraries that the particular job has searched?
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 Aug 08, 2008 9:05 am    Post subject:
Reply with quote

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 icon_smile.gif
Back to top
View user's profile Send private message
lanand_hps

New User


Joined: 05 Dec 2007
Posts: 82
Location: chennai

PostPosted: Sun Aug 10, 2008 9:18 pm    Post subject:
Reply with quote

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... icon_smile.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7908
Location: Bellevue, IA

PostPosted: Sun Aug 10, 2008 9:33 pm    Post subject:
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Sun Aug 10, 2008 9:35 pm    Post subject: Reply to: How to find the default system libraries
Reply with quote

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

New User


Joined: 05 Dec 2007
Posts: 82
Location: chennai

PostPosted: Mon Aug 11, 2008 12:59 pm    Post subject:
Reply with quote

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

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Mon Aug 11, 2008 1:18 pm    Post subject:
Reply with quote

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

New User


Joined: 05 Dec 2007
Posts: 82
Location: chennai

PostPosted: Mon Aug 11, 2008 1:21 pm    Post subject:
Reply with quote

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

New User


Joined: 05 Dec 2007
Posts: 82
Location: chennai

PostPosted: Mon Aug 11, 2008 1:38 pm    Post subject:
Reply with quote

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

Moderator


Joined: 17 Oct 2006
Posts: 2158
Location: @my desk

PostPosted: Mon Aug 11, 2008 1:56 pm    Post subject:
Reply with quote

lanand_hps,

Quote:
The programs are executing but utilities are abending with S04E..


Are you facing multiple abends??? icon_rolleyes.gif Do you mind posting the messages you got as well as the jcl you used for that.

Thanks,
Arun
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Aug 11, 2008 3:09 pm    Post subject: Reply to: How to find the default system libraries
Reply with quote

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 icon_evil.gif

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 icon_confused.gif

then You will have to live with Your abends icon_lol.gif ,
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
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 How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts Find out a active PGM jpsager JCL & VSAM 10 Fri Oct 07, 2016 4:32 pm
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm


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