I try to use SQL wherever possible, but in this case, it may be very
difficult if possible.  As I understand it, you're trying to sum fields in
a record which are not externally described to allow SQL to identify them.

If you ultimately decide to try RPG native file access be sure to check out
the BLOCK(*YES) keyword.  In some cases it can increase straight reads from
a file.  Using the Blocking effectively is sometimes what appears to give
SQL the advantage.  If it were me I'd try it with and without to see if
there was any difference.




As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 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.