Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 193
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 VSAM File free space sancraig16 JCL & VSAM 13 Fri Mar 30, 2018 1:02 am
No new posts VSAM BUFFER SPACE? John Poulakos CICS 17 Thu Mar 22, 2018 2:54 am
No new posts *MASTER* address space abending at IPL Alan Playford All Other Mainframe Topics 0 Mon Mar 12, 2018 8:02 am
No new posts To get Non matching row after compari... vinu78 DB2 7 Fri Jan 05, 2018 5:43 pm
No new posts DB2 catalog tables Pavan kumar chauhan DB2 8 Thu Dec 21, 2017 6:32 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us