Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fujitsu NetCobol error handling

Status
Not open for further replies.

ska00

Programmer
Sep 27, 2004
1
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top