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



wrote on Tue, 07 Aug 2012 19:51:52 GMT:

When using syspartitionstat, perhaps adding date last updated
might be of use. Since it runs so long (really long, really
really long; like I just left my laptop run it last night
instead of taking it home) you may want to get it the first
time.


It's entirely possible there is something very wrong with both
the first and second SQL statements.

One thing that I do is run

Create table ZIBMLIB/fileinfo as
( SELECT * FROM QSYS2/SYSPARTITIONSTAT WHERE DELETES > 0 )
with data

This creates a file from the view in QSYS2. Then the SQL
statements I posted earlier can be run against this new file
instead of against SYSPARTITIONSTAT and they will run much faster
because data is not being dynamically retrieved along with the
calculations and selection criteria.

Of course, you want to replace ZIBMLIB with a library that
actually exists on your system.

Sue

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.