On Thu, 30 Mar 2017 13:20:57 -0700, Alan Young <[email protected]> wrote:

[...]

>
>fread(), fwrite(), fclose(), clrmemf() etc. support it. And the routines
>are callable from COBOL.
>
>Alan
>

And if calling C/C++ from COBOL programs, be aware of the 00A/S0CA issue. Since 
COBOL truncates high-order by nature, the "don't bother with exception for 
this" bit is set for COBOL programs. However, for COBOL calling C/C++ (or using 
a DLL) the bit is "on".

If unhandled overflow occurs in the COBOL program thereafter, LE will spend 
some (noticeable) time ignoring it, because it comes from COBOL.

If you add C/C++ function-usage to a COBOL program and get an otherwise 
unexplained increase in CPU usage, look to overflow from calculations.

If unintended truncation, fix. If intended, do it in such a way as to not cause 
the overflow.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to