You can use the #pragma nosigtrunc directive to suppress a run-time
exception that occurs as a result of overflow. The WebSphere Development Studio: ILE C/C++ Compiler
Reference contains information on the#pragma nosigtrunc
directive.
The following figure shows how to suppress the run-time exception created when a packed decimal variable overflows on assignment, in a function call, and in an arithmetic operation.
Figure 289. ILE C Source to Suppress a Run-Time Exception
|
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.