handleOverflow

The system variable VGVar.handleOverflow controls error processing after an arithmetic overflow. Two types of overflow conditions are detected:

You can set VGVar.handleOverflow to one of the following values. (The default setting is 0.)

Value Effect on user overflow Effect on maximum value overflow
0 The program sets the system variable SysVar.overflowIndicator to 1 and continues The program ends with an error message
1 The program ends with an error message The program ends with an error message
2 The program sets the system variable SysVar.overflowIndicator to 1 and continues The program sets the system variable SysVar.overflowIndicator to 1 and continues

You can use VGVar.handleOverflow in these ways:

The characteristics of VGVar.handleOverflow are as follows:
Primitive type
NUM
Data length
1
Is value always restored after a converse?
Yes

Example

  VGVar.handleOverflow = 2;
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.