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 > can i use the list tablespaces command in a procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-04-04, 05:06
ronenshi ronenshi is offline
Registered User
 
Join Date: Sep 2004
Posts: 33
can i use the list tablespaces command in a procedure

i need to find the total free spaces in MB in a tablespace.
can i use the list tablespaces command in a store procedure, or is their a query i can use instead?

10x
Ronen
Reply With Quote
  #2 (permalink)  
Old 11-04-04, 10:07
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
I don't think you can execute LIST TABLESPACES from a procedure. However, you can query SYSCAT.TABLESPACES to retrieve the information you need.
Reply With Quote
  #3 (permalink)  
Old 11-05-04, 04:49
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
If you are on Version 8 , you can use the SNAPSHOT_TBS_CFG table function
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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