Protecting against Overflow Values
It is possible that the value calculated by the E@DBCALCAGGRGT API will be too large for the field it would be stored in. To prevent such an overflow value from being stored, you can check the E@DBAGGOVRFLW field. A value of "1" indicates an overflow has occurred. You can include code to control what the program should do in the event of an overflow.