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




On Aug 31, 2011, at 8:16 AM, midrange-l-request@xxxxxxxxxxxx wrote:

This is a new one to me, so I thought I'd share. Sometimes I do a full
subfile load, and usually I condition the loop on EOF on the file being
read. Not to go into a ton of detail, but this time I conditioned on
generic %EOF and I was surprised to find my loop ending after filling
one page and one record of my subfile.

Just one more reason why I always tell folks to never ever code %EOF without a file name. I've seen so many cases where this kind of thing happens - not because of a subfile normally, but just because during maintenance a programmer added another file (or changed usage of an existing file) and all of a sudden there's more than one thing that can trigger the generic %EOF().

It is an odd-ball though - first time I realized it was possible to trigger %EOF on Write to subfile was when I was building some presentation charts to show the correlation between the old-style indicators and the (then) new BIFs back in V4R2.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.