|
Mike: The array lookup is going to be much faster, as the array will be stored in memory, the CHAIN will require disk I/O. However, why not just change a variable in your program (not store the flag in an array)? I think that would be the fastest and most efficient of all! cjg Carl J. Galgano EDI Consulting Services, Inc. 550 Kennesaw Avenue, Suite 800 Marietta, GA 30060 (770) 422-2995 - voice (419) 730-8212 - fax mailto:cgalgano@ediconsulting.com http://www.ediconsulting.com AS400 EDI, Networking, E-Commerce and Communications Consulting and Implementation http://www.icecreamovernight.com Premium Ice Cream Brands shipped Overnight "You ain't gonna learn what you don't want to know" - rw 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? Thanks in advance. Mike _______________________________________________
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.