Hi, I'm aware that one can get the size of a table after giving the RUNSTATS command and then giving a command like this --
db2 "select substr(t.tabschema,1,10)||'.'||substr(t.tabname,1, 20) as table ,char(date(t.stats_time)) as statsdate ,char(time(t.stats_time)) as statstime ,T.CARD as rows_per_tbl, decimal(float(t.npages)/(1024/(ts.pagesize/1024)),9,2) as used_mb ,decimal(float(t.fpages)/(1024/(ts.pagesize/1024)),9,2) as allocated_mb from SYSCAT.TABLES T ,SYSCAT.TABLESPACES TS where t.tbspace=ts.tbspace and T.tabname='EMPLOYEE' and T.TYPE='T'"
TABLE STATSDATE STATSTIME ROWS_PER_TBL USED_MB ALLOCATED_MB
------------------------------- ---------- --------- -------------------- ----------- ------------
DB2USER .EMPLOYEE 11/21/2011 17:45:08 811088680 38428.18 38428.18
Similarly, is there a command I can give after giving RUNSTATS on the index of a table that will give me the estimate of the index size? thanks!!