|
I am trying to understand this. Am I right? NAMEFILE has KEY, NAME, ADDRESS, etc DETAILFILE has KEY, PLUSUNIQUEKEY, etc examples NAMEFILE KEY NAME ADDRESS 0001 Ralph 1313 Mockingbird lane 0002 Malph 1210 Robin Drive ... DETAILFILE KEY PLUSUNIQUEKEY 0001 001 0001 002 0002 001 0002 002 0002 003 ... I have some ideas in mind but first can you give me a sample of what you are trying to achieve. (Seems like one respondent doesn't know what the term 'denormalized' meant.) boothm@earth.goddard.edu on 12/05/99 01:57:29 PM Please respond to RPG400-L@midrange.com@Internet To: rpg400-l@midrange.com@Internet cc: Fax to: Subject: Alphabetizing detail records to a header file 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 http://www.spy.net/~booth _______________________ +--- | 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 +--- +--- | 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 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.