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



David,

I hope that comment's in jest.

As a programmer, if I have to look at someone's program and the logic I'm dealing with has a %eof() instead of %eof(filename) or an EndOfFile indicator, I will at that point begin to waste my time verifying that the expected reads are setting the %eof and no other. Also when bug testing, I have to consider that the %eof() may be an issue because it leaves itself open to being changed unexpectedly. Also, this kind of bug may lay hidden for ages before being encountered.

Coding for readability (and modularization) is a huge time saver. To not care is to shoot yourself in the foot later, imo.

I think the question about %eof has been answered. Here's an IBM link about the BIF (which you can get easily by pressing F1 in your RPG source in WDSCi which I know you use).
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/books_web/c0925086585.htm

I apologize if I misunderstood your "Come on guys" comment.

-Kurt Anderson

-----Original Message-----
David FOXWELL <David.FOXWELL@xxxxxxxxx>

Come on, guys it only becomes toast if you modify it AND don't test it!

Noone answered the second part, are there several levels of EOF? Ie one
for
each file and one for the last file read?


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.