×
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.
why not something like....
read file;
dow not %eof;
do stuff
read file
enddo
No need for a second control structure if you do one read prior to
entering the loop.
Thanks
Bryce Martin
Programmer/Analyst I
Ext. 4777
"Jeff Crosby" <jlcrosby@xxxxxxxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
01/09/2009 01:38 PM
Please respond to
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
To
"'RPG programming on the IBM i / System i'" <rpg400-l@xxxxxxxxxxxx>
cc
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>
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.