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


  • Subject: Re: reading a big file
  • From: "James W. Kilgore" <qappdsn@xxxxxxx>
  • Date: Sun, 29 Jun 1997 10:14:09 -0700
  • Organization: Progressive Data Systems, Inc.

boothm@earth.goddard.edu wrote: 
<snip> 
> The file I am concerned with has 5 million records.  I want to go through
> this file making selections based upon choices made for several fields.
> Normally I would use the RPG cycle and bang down through the file (no K),
> making the selection tests with the most limiting choice first, and as
> soon as a record fails, goto end of cycle.  
<snip> 
> I've done this a lot on smaller files and smaller machines.  It offers a
> real easy front-end for the user and is flexible.
> 
Use the same front end, but since you have no index, construct an
OPNQRYF command instead, the DBMS will read through the file and filter
without having to pass every record to a HLL.

Study the request patterns, maybe have requests logged to a file for
later analysis, and build at least the most common filtering request as
a logical.

Hope you weren't looking for 2 sec response time. =:-o

If you are building a subfile, use page-at-a-time building, optimize
your OPNQRYF to *FIRSTIO...good luck.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the Midrange System Mailing List!  To submit a new message,   *
* send your mail to "MIDRANGE-L@midrange.com".  To unsubscribe from     *
* this list send email to MAJORDOMO@midrange.com and specify            *
* 'unsubscribe MIDRANGE-L' in the body of your message.  Questions      *
* should be directed to the list owner / operator: david@midrange.com   *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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.