× 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.



Dave,

I hope you saw Chuck's response;

SELECT TABLE_SCHEMA, TABLE_NAME
FROM QSYS2.SYSPSTAT
WHERE TABLE_SCHEMA = :LibName /* Or IN ( ) */
AND NUMBER_ROWS = 0

It is there.

Jim

On Mon, Feb 25, 2008 at 3:49 PM, Dave Odom <Dave.Odom@xxxxxxxxxxxx> wrote:

Eric, Nick, Buck,

Eric,

You wrote:

I could certainly be mistaken, but since that sort of metadata is stored
within the file object on OS400, why would SQL need to store row counts in a
database? I don't think you'll find it in the catalog views... <<

In all real RDBSs, the "metadata" for all tables, rows, columns, indexes,
etc., is contained in the system catalogs, NOT in each table object. This
so you and the optimizer, etc., only has to look in one place to find all
"metadata" for all tables, etc. And, it's not SQL that's storing this data
in the real RDBMS, its the database engine.

Nick and Buck, Already went down that route for each of the libraries of
which I'm interested; how very antiquated... at the library/schema level and
not the database level.

Thanks anyway, I was hoping DB2/400 had matured to a real DB2 but, alas,
no. I can only hope it soon will.

Thanks again,

Dave
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.