× 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: Alphabetizing detail records to a header file
  • From: "Dan Bale" <dbale@xxxxxxxxxxx>
  • Date: Mon, 6 Dec 1999 13:05:37 -0500



Booth,

Have you tried an OpnQryF join on these two files?  Make the detail the primary
file and the header the secondary file, and use the header's name field as the
key.  Something you can't do with a DDS join-logical file.

>  "denormalizing" vs. "feeling right"

Unfortunately, there are times when normalization incurs a cost too high to live
with.  Perhaps when physical DASD as we know it today is made obsolete by the
faster, instantaneous stuff still in the labs, we'll be able to normalize to the
nth degree and not suffer the performance penalties.

- Dan Bale


boothm@earth.goddard.edu (by way of David Gibbs <david@midrange.com>) wrote:

I have an idea I may have missed something obvious.

Here's the situation:  I have a Header File of names and addresses. The
Header File has a unique identifying number for each name.  The numbers
are assigned as each new name is added to the file so the numbers really
amount to arrival sequence, not  to Alphabetic Sequence.   I do have a
logical over the Header File based upon the name, so that any reports can
be generated in alphabetic order.  All this seems simple and straight
forward.

Now comes the part where I think I am missing something:  I also have an
application with a small detail file for a  specialized application.  The
small group is probably going to be about 300 records but certainly never
over 1,000 records.  I've linked it logically with the Header File by the
unique Header File I.D. number. To present an alphabetic subfile on the
screen of that small grouping I have to read through the entire alpha
logical on the Header File.  As you can imagine performance is horrid.

In the past I've loaded an *INZSR array, and I've denormalized the data.
Neither method has felt right.  Is there some simple thing I've missed?

Thanks.
_______________________
Booth Martin
boothm@earth.goddard.edu





+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


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.