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



Just to let you know, the backup didn't work the other night.  Had a <> 
where it should have been =.  Or maybe it was forgotten in a conversion 
from dou to dow?  Anyway, I ended up with an infinite loop.
         dow ReadEBkplib(BackupGroup)=0;  // This is the final, and 
working, way

To flog some more dead horses:

1 - As I stated previously, I like returning the actual read's %status 
instead of a logical true/false to give me the granularity of actually 
checking why the read failed.  (If I choose to care.)  I don't like to 
assume it was only because of EOF.  Could be because some read trigger 
blew up or any number of items that most programmers don't check for.

2 - I too like using a debuggable return variable in the subprocedure
       ReturnVar=%status(bkplib);
       return ReturnVar;
I agree that it would be nice to debug the bif's.  But in the RPG request 
vernacular, this might be one of those $100 requests.

3 - Doing the read in a subprocedure and using that on the dow loop does 
allow me to
    a - Not have both a priming read and a loop read
    b - Makes an iter work without an infinite loop

Rob Berendt

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.