|
Dan, I think you're right. No doubt, I DO like the V5R4 enhancements. However, being able to do a loop without a before read and a read within the loop (or in the sql vernacular a before loop fetch and a fetch within the loop) is rather nice. If OpenCursor(); Dow FetchCursor(); // your logic here EndDo; And the details as to whether or not FetchCursor() died because it simply ran to the end of the cursor, or if something bizarre happened (like no one put logic in OpenCursor if the open didn't work) can be down in that subprocedure and not cluttering up your mainline. I have even got into the habit of doing this for read loops in traditional RPG I/O. Rob Berendt
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.