MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to know load module pds name where stored procedures sto

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Tue Apr 26, 2011 7:29 pm    Post subject: how to know load module pds name where stored procedures sto Reply with quote

Hi All,

How can I know the PDS load module name where stored procedures are resided.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Apr 26, 2011 9:13 pm    Post subject: Reply with quote

yadav2005,

Untested Sql

Code:

SELECT EXTERNAL_NAME
  FROM SYSIBM.SYSROUTINES
 WHERE ROUTINETYPE = 'P'
   AND NAME LIKE 'Your Sp Name%'


Here is the detailed explanation of the contents of SYSIBM.SYSROUTINES catalog table

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNSQK16/7.7.74?

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Wed Apr 27, 2011 8:24 am    Post subject: Reply with quote

Kolusu,

I did try to run your query but I do not get any PDS name , am I missing anything here.I did check for the column EXTERNAL_NAME but could not make out.Can you help me where I am wrong in my understanding.
Code:

EXTERNAL_NAME
VARCHAR(762) NOT NULL
The path/module/function that DB2 should load to execute the routine. The column is blank if ROUTINETYPE = 'F' and ORIGIN is not 'E'.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Apr 27, 2011 10:31 am    Post subject: Reply with quote

yadav2005,

The question is what did you get from the external_name ? if the catalog table is not updated, compile an existing SP and look at the JESMSGLG and find out the PDS name

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Wed Apr 27, 2011 9:01 pm    Post subject: Reply with quote

Thanks Kolusu your solution helped me and I was able to get the required information.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Apr 28, 2011 10:35 am    Post subject: Reply with quote

yadav2005,

Can you share as to how you got the required information?

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Fri Apr 29, 2011 1:56 pm    Post subject: Reply with quote

Kolusu,

Can you please help me know with the name of the dataset which I can use.My understanding is that ,there is a dataset that comes with DB2 when it is installed that contains sample programs and sample compile JCL. I would like to know the sample JCL in that dataset to compile user defined functions.
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Fri Apr 29, 2011 3:59 pm    Post subject: Reply with quote

usually it is some form of DSN910.SDSNSAMP - where the 910 refers to the db2 version that you are running.

obviously, these can/are/could be renamed by your dba when installed.

ask your dba's.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group