× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I'm running the following statement to get data sizes for all objects in a particular library on the IBMi (V7R4):

SELECT s.TABLE_SCHEMA, s.TABLE_NAME, t.SYSTEM_TABLE_NAME,s.DATA_SIZE DataSizeBytes, (s.data_size / (1024.0 * 1024.0 * 1024.0)) DataSizeGB
FROM qsys2.SYSTABLESTAT s INNER JOIN QSYS2.SYSTABLES t ON t.TABLE_SCHEMA =s.TABLE_SCHEMA AND t.TABLE_NAME =s.TABLE_NAME
WHERE s.TABLE_SCHEMA ='MYLIB' ORDER BY s.DATA_SIZE DESC

When I look at a particular table it says it is 1.8GB, when I look at that same object here:

\\IBMi\ROOT\QSYS.LIB\MYLIB.LIB\CXRWSPROCS.FILE<file://IBMi/ROOT/QSYS.LIB/MYLIB.LIB/CXRWSPROCS.FILE>

It shows as 35.2 GB.

FYI, "MYLIB" is just an example library name.

I'm trying to understand why they are so drastically different when viewing the file member from windows explorer and browsing to the IFS where the data resides to what SYSTABLESTAT contains.

Is there some procedure that has to be run to ensure that SYSTABLESTAT is periodically updated with the latest table metrics?

Thanks!

Matt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.