IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Allocated Space for Tables in DB2


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sivagurunathan Jagadeesan

New User


Joined: 06 Mar 2007
Posts: 32
Location: India

PostPosted: Mon Jul 13, 2009 10:57 am
Reply with quote

Hi,

I am trying to find out the “Allocated” space for tables in Test Database, by using PQTY, SQTY and Extents, which I get by executing the following query in Test DB,

SELECT B.TBNAME, A.PQTY, A.SQTY, MAX(A.EXTENTS)
FROM SYSIBM.SYSINDEXPART A,
SYSIBM.SYSINDEXES B
WHERE A.IXNAME = B.NAME
AND A.IXCREATOR LIKE 'ABC%'
GROUP BY B.TBNAME, A.PQTY, A.SQTY


Formula used to find the Allocated Space is,

((PQTY*4)/720 + EXTENTS+[(SQTY*4)/720)])

Can anyone let me know if the above formula will give the correct result? If not, is there a alternate way to find the Space using PQTY,SQTY and Extents.

Thanks for the help,
Siva
Back to top
View user's profile Send private message
Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 193
Location: chennai

PostPosted: Mon Jul 13, 2009 11:52 pm
Reply with quote

No
Back to top
View user's profile Send private message
Sivagurunathan Jagadeesan

New User


Joined: 06 Mar 2007
Posts: 32
Location: India

PostPosted: Tue Jul 14, 2009 8:43 am
Reply with quote

Thanks a lot for your reply, anyway I could not make much out of it……
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Jul 14, 2009 1:21 pm
Reply with quote

Check if this link works for you Space calculation for table creation.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Allocated cylinders of a dataset DB2 12
No new posts Need to fetch data from so many DB2 t... DB2 9
No new posts Merge 2 lines based on Space from a S... DFSORT/ICETOOL 5
No new posts Allocated space calculation from DCOL... PL/I & Assembler 3
Search our Forums:

Back to Top