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



Not sure why the example is no correct. The infds *status tells you
everything you need about you io operation.
Status code of 0 = %found(), %equal or not %eof
Status code of 11 = %eof
Status code of 12 = not %found() or not %equal
Status code of 1218 = record already locked.


RPG built in BIF is not restricted to only allow returns boolean. It
code be created to return %status if needed.



"Carel Teijgeler" <coteijgeler@xxxxxxxxx> wrote in message
news:<mailman.8227.1220467096.2545.rpg400-l@xxxxxxxxxxxx>...

Lim Hock-Chai's examples are not correct.
1) using *STATUS will miss other errorsand does not mean EOF or (NOT)
FOUND.
2) having a BIF %reade would return a boolean value (*ON or *OFF) and
should be tested as such or with '1'or '0', nut with a number.

With regards,
Carel Teijgeler


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.