|
Well, folks, my third post, but if you're using an RPG cursor you can "simulate" lookahead by reading into one data structure, this makes *all* the fields into "lookahead" fields, and after you do [whatever] you "move" it to the other "current" data structure, prefixed differently. I do this often, to help keep logic inside one program instead of two (I've used QCMDEXC often enough but it's too ugly). For RPG, Tom's "lookahead" works better than my array example. It's just that after a series of programs where the array was the only way to make it work properly (multi-column output, getting a percentage over L1 sums, etc., I got into the habit). If it's a key field, and response time is the deciding factor, it looks like lookahead to me. - Alan
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.