overflowIndicator

The system variable SysVar.overflowIndicator is set to 1 when arithmetic overflow occurs. By checking the value of this variable, you can test for overflow conditions.

After detection of an overflow condition, SysVar.overflowIndicator is not reset automatically. You must include code in your program to reset SysVar.overflowIndicator to 0 before performing any calculations that may trigger overflow checks.

You can use SysVar.overflowIndicator in these ways:

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

Example

  SysVar.overflowIndicator = 0;
  VGVar.handleOverflow = 2;
  a = b;
  if (SysVar.overflowIndicator == 1) 
    add errorrecord;
  end
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.