|
DAVID, Original Message: ----------------- I agree that this is not a good place to use SQL, but for the same reason, OPNQRYF and a four line RPG program are just as bad. You can easily do what you describe using SQL and an RPG UDF or even SQL and an SQL UDF in a single pass. The problem is that it is not dynamic and will have to be rerun when data is changed in the file. I would consider moving the rank to another file and updating it from a short (but not four line) trigger written in RPG. -------------- Why is shoehorning the functionality into SQL a better method? What's wrong w/ the straight RPG method? Is your problem w/ OPNQRYF? If yes, why do you feel that it's so evil? -mark -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ .
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.