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



I always use %Eof(File), %Found(File), etc. unless I have a situation
where I need to condition data IO from many files like the following
example. I want to reduce the possibilities for run time logic errors
and using the name in the BIF prevents another from changing the code so
that the IO and the BIF test are not right next to each other.

Dou Rrn1 = Sflpage;
Select;
When Sort = 'UPC';
Read File1;
When Sort = 'DESC';
Read File2;
Endsl;
If %Eof();
Iter;
Endif;
.
.
.
Enddo;

Thanks, Matt

-----Original Message-----
From: Booth Martin [mailto:booth@xxxxxxxxxxxx]
Sent: Wednesday, July 02, 2008 10:19 AM
To: RPG programming on the AS400 / iSeries
Subject: Standards question: What is your feeling about %found & %eof
vs.%found(file) & %eof(file) ?

Standards question: What is your feeling about %found & %eof vs.
%found(file) & %eof(file) ?

We have been having a discussion about the pros & cons of these two
choices.

It would be interesting to read the thoughts of the stars and
almost-stars on this topic?


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.