|
Correct.
This is really one of those "it all depends". By using the READE approach you are tackling the requirement through an application program - which means that the same solution has to be "coded" in every program that would require that selection path.
By using the DYNSLT approach, it is being done by the database manager ans all an application (RPG, SQL, Java etc.) has to do is open the file and process it.
As Steve pointed out, the use of DYNSLT can be quiet an overhead depending on the number of row returned.
FWIW, I would try the DYNSLT approach first ('cos I always prefer to do as much as I can in the database as opposed to within a program) and then, if I wasn't happy with the performance, go for the READE.
HTH
Paul
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.