× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Larry Ducie wrote:
I contest the idea that putting explicit do-loops for explicit file reads
adds unnecessary complexity to a program. On the contrary, I believe it
removes the obfuscation that the cycle introduces.

Obfuscation? What obfuscation?

Since one MUST either use, short-circuit, or disable The Cycle in any RPG program, anybody who has any business programming in RPG is going to be aware of it (otherwise, his or her programs, if they compile at all, are going to go into endless loops). Therefore, the first three things anybody should look for in an unfamiliar RPG source member are:
1. Is there a primary file? If so, then the program is implicitly "do this for every record in the file."
2. Where (if anywhere) is LR being explicitly set on, and under what circumstances?
3. Where (if anywhere) is there an explicit return, and under what circumstances?

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

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.