|
"(it's name means "Report Program Generator")"
Actually it doesn't and hasn't done for many, many years now.
It _used_to_mean_ "Report Program Generator"
Jon Paris
www.partner400.com
www.SystemiDeveloper.com
On Apr 27, 2017, at 12:38 PM, James H. H. Lampert <jamesl@xxxxxxxxxxxxxxxxx> wrote:
it's designed to process entire files, and as such, every RPG program
The only thing I can think of to add is this:
DON'T BE AFRAID TO TAKE A RIDE ON "THE CYCLE."
Because of RPG's history (it's name means "Report Program Generator"),
(unless, in the more recent versions of RPG, you explicitly disable it)
runs inside an implicit "DO UNTIL *INLR = TRUE" loop, and if you designate
a file as the "Primary File," each iteration of that implicit do-loop
begins with a read operation on that file, raising the "LR" indicator when
the last record of the file is read.
through the file, processing each record in sequence, instead of having to
If you designate a Primary File, then The Cycle allows you to "ride"
"walk" through it.
a built-in event loop for an interactive program: all you need to do is
And if you don't designate a Primary File, then The Cycle can be used as
raise the LR indicator whenever the user is ready to exit.
to either disable it explicitly, or else make sure LR gets raised.
If you don't have a use for The Cycle in a given program, then you need
Cycle, it will run over you.
WHAT YOU DO NOT WANT TO DO IS IGNORE "THE CYCLE." If you ignore The
mailing list
--
JHHL
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
To post a message email: RPG400-L@xxxxxxxxxxxxquestions.
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related
link: http://amzn.to/2dEadiD
Help support midrange.com by shopping at amazon.com with our affiliate
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD
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.