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 > return cursor datatype

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-04-07, 05:11
baloo99 baloo99 is offline
Registered User
 
Join Date: Feb 2007
Location: Bratislava, Slovakia
Posts: 85
return cursor datatype

Hi all,
please where i can find out datatypes of cursor, which returns stored procedure?
procedure in question is sysproc.reorgchk_ix_stats, database is LUW 8.2.3, win version
thanks
__________________
Beer contains just a small amount of vitamines - that's why it's necessary to drink lot of it.
Reply With Quote
  #2 (permalink)  
Old 06-04-07, 06:50
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #3 (permalink)  
Old 06-04-07, 07:13
baloo99 baloo99 is offline
Registered User
 
Join Date: Feb 2007
Location: Bratislava, Slovakia
Posts: 85
guyprzytula:
thanks, but this is for 9x ... and 8.2.3 have another fields...
can i select this from any catalog view ?
__________________
Beer contains just a small amount of vitamines - that's why it's necessary to drink lot of it.
Reply With Quote
  #4 (permalink)  
Old 06-04-07, 09:54
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
the result set for V8 is not defined in detail, but these are the fields
The result set returned by this procedure includes the following information:

* TABLE_SCHEMA
* TABLE_NAME
* INDEX_SCHEMA
* INDEX_NAME
* CARD (cardinality, or number of rows in the base table)
* NLEAF (total number of index leaf pages)
* NUM_EMPTY_LEAFS (number of pseudo-empty index leaf pages)
* NLEVELS (number of index levels)
* ISIZE (index size)
* NUMRIDS_DELETED (number of pseudo-deleted RIDs)
* FULLKEYCARD (number of unique index entries that are not marked 7 deleted)
* F4 (F4 formula value)
* F5 (F5 formula value)
* F6 (F6 formula value)
* F7 (F7 formula value)
* F8 (F8 formula value)
* REORG (a 5-character field, each character mapping to one of the five formulas: F4, F5, F6, F7, and F3; a dash means that the formula value is in the recommended range; an asterisk means that the formula value is out of the recommended range, indicating a need for reorganization)

the catalog should return the real datatype and definition
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8

Last edited by guyprzytula; 06-04-07 at 10:07.
Reply With Quote
  #5 (permalink)  
Old 06-04-07, 12:05
baloo99 baloo99 is offline
Registered User
 
Join Date: Feb 2007
Location: Bratislava, Slovakia
Posts: 85
guyprzytula:
thanks, i saw this page.
my problem was wrong number of output variables.
thanks for help again.
__________________
Beer contains just a small amount of vitamines - that's why it's necessary to drink lot of it.
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