I have a CL program that calls a bunch of RPG programs.
The calls are in the form:
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)
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?
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.