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 

Calculating SIZE of a DB2 Table

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


Joined: 12 Feb 2008
Posts: 141
Topics: 66

PostPosted: Fri Jul 27, 2012 6:35 am    Post subject: Calculating SIZE of a DB2 Table Reply with quote

Hi,

We are asked to write an email alert Job for a table so that if it reaches 80% of its capacity an alert needs to be sent.

So I will need 2 data for this. Actual Space and Used Space.

I was told the accurate figure can be arrived at if we able to get the VSAM files alloted for the table.

Can someone guide me through this.


Thanks
_________________
Arvind
"You can make a difference with your smile. Have that with you always"
Back to top
View user's profile Send private message Yahoo Messenger
papadi
Advanced


Joined: 20 Oct 2009
Posts: 520
Topics: 1

PostPosted: Fri Jul 27, 2012 10:47 am    Post subject: Reply with quote

One way to get space info is to do a RUNSTATS on the tablespace in which the table is residing.

Another might be a LISTCAT on the LDS in question.
_________________
All the best,

di
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 11187
Topics: 70
Location: San Jose

PostPosted: Fri Jul 27, 2012 11:24 am    Post subject: Reply with quote

arvibala,

Run the utility STOSPACE which updates DB2 catalog columns that indicate how much space is allocated for storage groups and related table spaces and indexes. Once that is done you can query those tables and send out the notification.

Check this link which explains in detail about The STOSPACE utility

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


Joined: 12 Feb 2008
Posts: 141
Topics: 66

PostPosted: Tue Jul 31, 2012 8:57 am    Post subject: Reply with quote

Thanks .. Running the Utility gives Used Space in SPACE or SPACEF column, how to find the Actual Space?
_________________
Arvind
"You can make a difference with your smile. Have that with you always"
Back to top
View user's profile Send private message Yahoo Messenger
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