|
What would make it more readable is that I can use an OPEN/CLOSE cursor within a recursive ILE procedure and let the recursion stack keep track of my position within each recursive cursor. With SETLL/READE, I've got to have an F-spec for the file within each procedure (only doable on 6.1+). I can't help thinking that building the new ODP from each F-spec would be kind of slow, maybe slower than setting a new cursor. If I don't have a new F-spec within each procedure, I've got to build some mechanism for reseting the position in the READE list whenever a recursion returns; that mechanism becomes hard for the maintenance programmer to read and decipher.
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.