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



Pat,

>I have seen any number of tests that show FMTDTA as faster than any
>other method of "sorting"... OPNQRYF will get much closer with
>logicals but since you don't know the final sequence, that's 
>gonna be a tougher nut to crack.

My understanding has been that since the addition of ALWCPYDTA(*OPTIMIZE) as an
option to OPNQRYF, that under the covers OPNQRYF will use the exact same sort
engine as FMTDTA when the optimizer determines a sort will be the most efficient
method under the circumstances.  This tends to be the case when you are
selecting all or most of the records in the file.

ALWCPYDTA(*OPTIMIZE) was added back at V2Rx, as I recall.  I prefer it over
FMTDTA because it lets me specify field names rather than record offsets.

See the parameter's help text under OPNQRYF, as it gives more information, and
the restrictions on when *OPTIMIZE is allowed.

Doug

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.