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



if changing the RPG is possible would this be a good place to use the "on-exit" https://www.ibm.com/docs/en/i/7.3?topic=codes-exit-exit

you could set indicators change return variables, etc.
was also thinking about "on-error" but not sure what is going on in the program.

--
Bryan


James H. H. Lampert via MIDRANGE-L wrote on 8/10/2022 6:19 PM:
I have a CL program that calls a bunch of RPG programs.

The calls are in the form:

    CALL FOO
    MONMSG     MSGID(CEE9901) EXEC(DO)
    SNDMSG     MSG('We experienced a problem with the +
                  FOO program, and are skipping the rest +
                  of this run.') TOMSGQ(QSYSOPR FROBOZZ)
    GOTO       CMDLBL(SKIPTHIS)

Normally, this works quite well. But today, we experienced an anomaly, such that we would like very much for the CL program to respond differently if a dump is taken on one of the called RPG programs.

I will note that when an *expected* error occurs, the RPG program will respond with a SETON of indicators H1 and LR, followed by a RETURN. The *unexpected* errors *don't* have an explicit SETON of H1. Can I maybe use that?

--
JHHL


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.