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



The fact is, as Jerry knows and others seem to have chosen to forget, every RPG IV program (i.e., has a main) uses the cycle - no matter what you think. You still always have to turn on *INLR to end the program - if you have only full-procedural files, or no files, the cycle goes once around.

All it is is, another tool. Use it where it fits. Don't become ignorant of good techniques that are older, just because of concentrating on only the so-called latest and greatest fad.

I love free-form - and I will still write a primary processing program where it seems appropriate.

BTW, look at chapter 3 of the "current" RPG IV manual - whadya know? The Program Cycle!!!

If you really don't want to use the cycle, write your code in C or Java - then YOU get to do all those file opens and closes and all that overhead that is done for you through F-specs and all. And I challenge anyone to do display file stuff in C - I've done it, it is not impossible, but it is not my idea of a good time.

JMNSHO
Vern

At 07:53 AM 4/26/2007, you wrote:

No, because it is sometimes easier to do something with the cycle than
against it. Try doing matching records in a non-cycle program. 99% of
my programs are non-cycle, but knowing the cycle can be a time saver.
When I was teaching RPG (eons ago it seems), teaching to the cycle was
the first step. Today I doubt that it is even mentioned in RPG classes,
like it's a bad thing to be avoided. Pshaw!


* Jerry C. Adams
*IBM System i5/iSeries Programmer/Analyst
B&W Wholesale Distributors, Inc.* *
voice
615.995.7024
fax
615.995.1201
email
jerry@xxxxxxxxxxxxxxx <mailto:jerry@xxxxxxxxxxxxxxx>


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.