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



Yes. The reason was to set on three indicators (something else which the
language has always supported). I could do an IF/ENDIF, but why code three
lines when one line does the job?

On Dec 18, 2007 2:38 PM, Glenn Gundermann <ggundermann@xxxxxx> wrote:

Francis,

You used COMP in an RPG III program yesterday?
Are you listening to yourselves?

Wake up guys!!
Enough said.

Glenn Gundermann
ggundermann@xxxxxx
(647) 272-3295


Actually, Betamax was the superior format; it is still used in some
broadcast-quality applications in an enhanced format. But anyway..

There are times when the cycle greatly simplifies my life. If I'm going
to
read the entire file, anyway, why shouldn't I use it? And if an MR
program
fits the bill, I say, go for it. Anybody else can dig up their old
programming books (or better yet, just Google it or at least look it up
in
the RPG Reference on Infocente)r.

The cycle is a tool of the language. It is there to be used. Recall that
RPG
originally didn't even have the IF opcode - you had to use COMP nad use
the
resulting indicators to branch with GOTOs. Nobody in their right ming
would
do that today, but I have seen stuff that still uses COMP (and I
confess,
I
even used COMP in an RPG III program yesterday). It works - plain and
simple.
--
This is the RPG programming on the AS400 / 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.





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.