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



Hi Booth -

Can "RUNQRY *N SomeLF" be displayed in key  sequence?

Is it somehow possible to use the runqry command against a logical file
and have the records displayed in key  sequence?

You can't force it. You can encourage it by doing a record selection based on the first key field of the logical you want to be used, and hope that the optimizer will use that logical. (The record selection doesn't need to actually exclude any records.)

Specifying the logical that you want to be used as the RUNQRY file is irrelevant AFAICS; the optimizer does what it does based on the selection and ordering criteria. Since you can't specify any ordering criteria, you're limited to selection criteria to try to give the optimizer a nudge in the direction that you want it to go. Sometimes it works, sometimes it doesn't.

Ken
http://www.ke9nr.net/
Opinions expressed are my own and do not necessarily represent the views
of my employer or anyone in their right mind.


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.