Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Allocated Space for Tables in DB2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Allocated Space for Tables in DB2
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: 186
Location: chennai

PostPosted: Mon Jul 13, 2009 11:52 pm    Post subject: Reply to: Allocated Space for Tables in DB2
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    Post subject: Allocated Space for Tables in DB2
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

Senior Member


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

PostPosted: Tue Jul 14, 2009 1:21 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Getting list of tables defined under ... kishpra DB2 2 Wed Aug 24, 2016 10:36 am
No new posts Data set is allocated to another job ... Seppe CLIST & REXX 2 Wed Aug 03, 2016 4:31 pm
No new posts ISPF Tables Creation newsysprg TSO/ISPF 6 Wed Jul 13, 2016 2:21 pm
No new posts Difference space showed for TS and it... autobox DB2 1 Thu Apr 14, 2016 1:07 pm
No new posts How to find Table-space and Index-spa... venksiv DB2 5 Wed Feb 03, 2016 6:16 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us