× 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.



On 11/6/20 3:07 AM, Joep Beckeringh wrote:
I don't think I have used every feature of RPG, but I have used
primary and secondary files, matching records and look-ahead fields.
And no, I am not using them anymore.

I've never even figured out *how* to use a secondary file, and I'm not entirely sure what "matching records" and "look-ahead fields" are, at least in an RPG context (then again, a quarter century ago, when I was interviewed for my present position, I had no idea what a "logical file" was, at least in an IBM Midrange context; my best guess at the time corresponded more to a "member").

But when I saw that I could, just by specifying it in a file declaration, tell a program to "read every record of the file and execute the main for it," I immediately realized that this was something I could use a dozen different ways. And when I realized that modern interactive programs (and some non-interactive ones) typically run in an event-loop, and I could use The Cycle as an event-loop just by slaving LR to whatever event(s) signaled that it was "time to quit," I realized that it had at least one use that was largely untapped.

--
JHHL

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.