|
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jeff Crosby
Sent: Friday, January 09, 2009 12:39 PM
To: 'RPG programming on the IBM i / System i'
Subject: RE: Good places to use "The Cycle" in today's RPG
was->Re: FW: Niftiest thing(s) you have done in RPG ILE or /FREE
I do it the way you don't.
dow '1';
read file;
if eof;
leave;
endif;
processdata;
enddo;
That's MY opinion and I'm sticking to it. <g>
--
Jeff Crosby
UniPro FoodService/Dilgard
P.O. Box 13369
Ft. Wayne, IN 46868-3369
260-422-7531
www.dilgardfoods.com
The opinions expressed are my own and not necessarily the
opinion of my company. Unless I say so.
-----Original Message-----On
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]
Behalf Of GUY_HENZA@xxxxxxxxxxxxxxwas->Re: FW:
Sent: Friday, January 09, 2009 1:07 PM
To: RPG programming on the IBM i / System i
Subject: Re: Good places to use "The Cycle" in today's RPG
Niftiest thing(s) you have done in RPG ILE or /FREEto
Wow, just back from lunch and so many posts. I consider ITER and
LEAVE
be backwards from the way I think. I condition on what Iwant to do
noton
what I don't want to do.<jrperkinsjr@xxxxxxxxx>"James
dou eof;
read file;
if not eof;
processdata;
endif;
enddo;
This makes more sense to me than;
dou eof;
read file;
if eof;
leave;
endif;
processdata;
enddo;
That's my opinion and I'm sticking with it.
Regards,
Guy
Inactive hide details for "James Perkins"
Perkins" <jrperkinsjr@xxxxxxxxx>programming on
"James Perkins" To "RPG
the
<jrperkinsjr@xxxxxxxxx> IBM i /System i"
Sent by:<rpg400-l@xxxxxxxxxxxx>
rpg400-l-bounces@xxxxxxxxxxxx ccGood places to use
Subject Re:
01/09/2009 11:36 AM "TheCycle" in today's
RPG was->Re: FW:Niftiest
+---------------------------+thing(s) you have done
in
| Please respond to | RPG ILE or /FREEwith
| RPG programming on the |
| IBM i / System i |
| <rpg400-l@xxxxxxxxxxxx> |
+---------------------------+
If you don't use ITER or LEAVE do you just have a giant IF
statement,
loads of nested IF's? I really can't see how you couldright a program
thatcan't think if
uses logic any other way, but then again just because I
doesn't mean there is not a way.--------------------------------------------------------------
James R. Perkins
--
------------
-----e-mail may be
The information contained in and transmitted with this
privileged, proprietary, confidential and protected fromdisclosure. No
privilege is hereby intended to be waived. This e-mailis intended only
for the person to whom it is addressed. If you are notthe intended
recipient/addressee, any use of the e-mail and/or its contents,including,
but not limited to, dissemination, distribution orcopying is strictly
prohibited and may be unlawful, and you must not takeany action in
reliance on it. If you receive this e-mail in error,please immediately
notify the sender and delete the original message andany copies of it
from your computer system. We deny any liability fordamages resulting
from the use of this e-mail by the unintended recipient,including the
recipient in error.
--
This is the RPG programming on the IBM i / System i
(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.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit
http://www.messagelabs.com/email
______________________________________________________________________
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.