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



Dan wrote:
>
> I guess the bigger question was whether you can explicitly call the
> file's INFSR subroutine and expect the same behavior as if RPG itself
> called it.  I.e.:
>

Dan, it depends.  If you code a factor 2 on the ENDSR of your INFSR, or
if you send an escape message from your INFSR, then it will behave the
same for EXSR as it does for an exception. Otherwise, EXSR behaves like
an ordinary EXSR and ENDSR returns to the next instruction after EXSR,
but going to the INFSR from an exceptions causes an RPG inquiry message.

I think it's best to use (E) where an exception is expected, and use an
INFSR with '*CANCL' on its ENDSR for unexpected errors.  (Even if you
send an escape message from your INFSR, coding '*CANCL' is an extra
belt-and-suspenders ensuring that the program won't continue after the
INFSR runs.)

By the way, to use the *PSSR for both program and file errors, just code
INFSR(*PSSR) on your F specs.




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.