Hi,
I'm moving C++/COBOL project from MFcobol to Fujitsu and it came to my attention that even Fujitsu has the function CBL_ERROR_PROC (not documented in Fujitsu) to install error handler, it does nothing (or does not work properly). The problem is following:
C++ program initiates Cobol environment(JMPCINT2(), etc), sets error handler(s) and calls COBOL program. This Cobol program tries to call another cobol program which does not exist and no "ON OVERFLOW" is present.
As a result, the whole program just exits and I've tried everything to catch this in C++ (set_terminate(), onexit(), try/catch, etc). Nothing has helped.
Any idea ?
Thanks in advance,
Sergey
I'm moving C++/COBOL project from MFcobol to Fujitsu and it came to my attention that even Fujitsu has the function CBL_ERROR_PROC (not documented in Fujitsu) to install error handler, it does nothing (or does not work properly). The problem is following:
C++ program initiates Cobol environment(JMPCINT2(), etc), sets error handler(s) and calls COBOL program. This Cobol program tries to call another cobol program which does not exist and no "ON OVERFLOW" is present.
As a result, the whole program just exits and I've tried everything to catch this in C++ (set_terminate(), onexit(), try/catch, etc). Nothing has helped.
Any idea ?
Thanks in advance,
Sergey