× 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'm now checking existence with DSPLNK (*PRINT) before I attempt to do the
_open, but it's kind of inelegant.

Ewww... yuck, blech... If you want to work around the problem, use the IFS APIs to get a list of files in the directory, not DSPLNK (and certainly not *PRINT!). Or check each file with the access() API before trying to open it with HSSF_open().

Search Google for opendir closedir readdir RPG IV. I've written quite a few articles, as well as forums and mailing list messages that demonstrate these. I'm too lazy to look them up right now :)

But that's just a workaround. the "right fix" is to stop HSSF_open() from causing the whole JVM to go askew when one open fails. I suspect that the Java routine is throwing an error, and the RPG routine isn't properly clearing the error. I'll have to experiment with HSSFR4 to see if I can come up with a solution. Most likely, you just need to call the ExceptionClear() API to clear the error.

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.