If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
If you are to find out all objects in the machine. You may run PRTDSKINF command *LIB. This will produce a report of all libraries which are large in size. You may sort in object levels as well.
Note: In order to generate PRTDSKIN you need peroform RTVDSKINF in SBMJOB.
SELECT Substring( TabSchema, 1, 15 ) as Library,
Substring( TabName, 1, 15 ) as Table,
Number_Rows, Data_Size
FROM QSYS2.SYSTABLESTAT
Order by Data_Size Desc
Comment