If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Package Name

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-07-05, 01:26
AnilKale AnilKale is offline
Registered User
 
Join Date: Feb 2005
Posts: 118
Package Name

System: DB2 ver 7.2 on Windows

Which catalog view contains information that tells you package name associated with a stored procedure (build using stored procedure builder) ?

thanks.
Anil
Reply With Quote
  #2 (permalink)  
Old 03-07-05, 10:09
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Code:
SELECT rtrim(bschema) || '.' || rtrim(bname) 
FROM sysibm.sysdependencies p, syscat.routines r 
WHERE r.routineschema='XXX' and r.routinename='ZZZ' 
and p.dname = r.specificname and dtype = 'F' AND dschema ='XXX'";
Reply With Quote
  #3 (permalink)  
Old 03-07-05, 10:45
sathish_T sathish_T is offline
Registered User
 
Join Date: Feb 2005
Posts: 7
Hi,

Good Day.

Please try this out :

SELECT * FROM SYSIBM.SYSPACKAGE , it will have the following fields.
LOCATION,COLLID,NAME etc....

NAME filed will be your Package Name but will be SQLxxxx ( egQL48225 ).

Go to DSN!10.SRCLIB.DATA(SQLxxxx) , view this member to get to which Stored Procedure this package is bound.

Please get back to me for any queries on this.

Thanks and Regards,
Sathish.T

I am very sorry .. above information is for DB2 on z\OS .. I do not know in case of DB2 On windows..

Regards,
Sathish.T

Last edited by sathish_T; 03-07-05 at 10:50.
Reply With Quote
  #4 (permalink)  
Old 03-09-05, 09:25
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by AnilKale
I don't see syscat.routines as one of the views.
Well, this works in v8. Try syscat.procedures then.
Reply With Quote
  #5 (permalink)  
Old 03-09-05, 10:53
prithvi_raj prithvi_raj is offline
Registered User
 
Join Date: Apr 2004
Posts: 36
Select implementation from syscat.procedures where procname=xxxx


This will give you the package associated with the procedure...
is that what you want?
Reply With Quote
  #6 (permalink)  
Old 03-10-05, 00:10
AnilKale AnilKale is offline
Registered User
 
Join Date: Feb 2005
Posts: 118
*******_raj,

yes, that's what I was looking for. thank you.
Anil
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On