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



On 04-Aug-2014 13:23 -0500, Richard Schoen wrote:
Would this be done using

SELECT * FROM QSYS2/SYSTABLES


Members are partitions, not tables, so the SYSTABLES catalog VIEW is not of any help. And the catalog VIEW(s) that are helpful, are implemented as User Defined Table Function (UDTF) that might be implemented even faster with one's own coded listing feature per having limited the overall data retrieval requirements; need not be a UDTF if the data need not be available via the SQL, being instead simply a procedure call.

Most likely, for the fastest, to perform an effective Materialize Context (MATCTX) request. Most would code to the List Database File Members (QUSLMBR) API; I was not a big fan, and I would typically defer to DSPFD for the Type (TYPE) information of either *MBR for a date-ordered list or *MBRLIST for a name-ordered list. IIRC, the the list object features\APIs enable listing internal object types; thus why the effective MatCtx is required as an alternative. Some really old methods can be found using, for a chronological-ordered list using the Retrieve Member Description (RTVMBRD) but I always avoided that due to obvious potential issues for concurrent Remove Member (RMVM).


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.