|
What about something along this line (if FMTSRC doesn't work for you): Read the file,writing a record to one of 26 files, based upon the first letter. Most of the files would certainly be of manageable size by then, and the few remaining too-huge files could be run through the same process based upon their first 2 characters. Not pretty, but if the hugeness is an issue this solution would resolve that issue. _______________________ Booth Martin Booth@MartinVT.com http://www.MartinVT.com _______________________ "Leif Svalgaard" <leif@leif.org> Sent by: owner-midrange-l@midrange.com 10/04/2000 03:11 PM Please respond to MIDRANGE-L To: "List Midrange" <MIDRANGE-L@midrange.com> cc: Subject: Sorting large file Folks, I have a sequential file of 10,000,000 80-character text records. How do I sort the file the most efficiently? Leif +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-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-2025 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.