|
How big is the control file? Will you be adding data to the control file as you process the large files? Will the control file be sorted, so that %lookup() can search it efficiently? For a small control file that's already sorted, the %lookup BIF should be much faster than CHAIN. For a large file, especially if it's not sorted, CHAIN would be better... But, of course, you could always sort it. Finally, if you'll be adding to the array frequently, then having to re-sort it, that could affect performance. A user-index might be another alternative. On Fri, 22 Nov 2002, Mike Haston ** Data wrote: > I'm just noticing that as I spin through some large files that I'm chaining > out a million times (actually more) to a control file to check a flag. In > the initial subroutine I'm setting up an array that I could easily store > this flag in. I'm wondering what the opinion is as far as performance-wise > which is more efficient, doing the %lookup() on the array or chain to the > file? >
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.