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 > Need to find Sp parameters

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-16-06, 05:21
jimmy_a jimmy_a is offline
Registered User
 
Join Date: Feb 2006
Posts: 7
Question Need to find Sp parameters

Can any one tell me how to find sp parameters and its details like datatype , length , flowdirection using system tables in DB2..
Reply With Quote
  #2 (permalink)  
Old 02-16-06, 06:07
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
SYSCAT.ROUTINEPARMS

Quote:
Originally Posted by jimmy_a
Can any one tell me how to find sp parameters and its details like datatype , length , flowdirection using system tables in DB2..
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 02-16-06, 06:25
jimmy_a jimmy_a is offline
Registered User
 
Join Date: Feb 2006
Posts: 7
Thnks sathaya ..

using this SYSCAT.ROUTINEPARMS i can get a param name and its length..

Including this i need to find its UDD's and flowdir and Precision for the given..

Any idea from which table i can these details...
Reply With Quote
  #4 (permalink)  
Old 02-16-06, 06:42
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
http://publib.boulder.ibm.com/infoce...n/r0001044.htm

If you are unable to find the information, please give an example ... What does UDD mean ?

Quote:
Originally Posted by jimmy_a
Thnks sathaya ..

using this SYSCAT.ROUTINEPARMS i can get a param name and its length..

Including this i need to find its UDD's and flowdir and Precision for the given..

Any idea from which table i can these details...
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 02-17-06, 03:12
jimmy_a jimmy_a is offline
Registered User
 
Join Date: Feb 2006
Posts: 7
UDD means User Defined Datatype ...
Reply With Quote
  #6 (permalink)  
Old 02-17-06, 05:11
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
They are generally know as UDT - User Defined type

Quote:
Originally Posted by jimmy_a
UDD means User Defined Datatype ...
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #7 (permalink)  
Old 02-17-06, 06:03
jimmy_a jimmy_a is offline
Registered User
 
Join Date: Feb 2006
Posts: 7
Fine satya... I dont have much idea abt DB2 ..thats y i said UDD...

is there any way to find that UDT for a procedures
Reply With Quote
  #8 (permalink)  
Old 02-17-06, 06:38
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
I would recommend that start here
http://publib.boulder.ibm.com/infoce...n/r0011297.htm

SYSCAT.DATATYPES gives you information on the base datatypes for a given datatype.

Generally speaking, it is always useful to give example on what you want - rather than a one-liner saying UDD, flow dierection etc. Helps to get a response that will help you.

Cheers

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #9 (permalink)  
Old 02-17-06, 06:53
jimmy_a jimmy_a is offline
Registered User
 
Join Date: Feb 2006
Posts: 7
No satya.... I didnt mean the data type... let me exlpain u wht im expecting...

I defined one UDD called UDD_Name which is of data type char(10)..

In SP , the parameters which are all having the data type char(10) i can use this UDD_Name commonly... any one can use this udd in that DB...

Now i want to fetch the SP Name and the UDD Name and its corresponding data type and Length...

I can get all these details in SQL using information Schema.... Like wise i need to fetch in DB2...


I hope Im clear ......
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