M204.0563

From m204wiki
Jump to navigation Jump to search

M204.0563  Arithmetic overflow

A value to be stored in a fixed decimal field is greater than the maximum field size. This can result from arithmetic operations using fixed decimal numbers or from moving too large a number into a fixed decimal field.

The largest number that can be stored is approximately 9 * 1018. Note that each decimal place defined for a fixed decimal number reduces the maximum size of the number by a power of 10. For example, if a field is defined with 11 decimal places, the maximum number that can be stored in the field is 9 * 107, or 90000000.

Response: Correct the field definition to accommodate the largest values. It may be appropriate to use floating point variables if very large numbers occur.

Message attributes:

RETCODEO=0Sets online return code
RETCODEB=4Sets batch (single user) return code
CLASS=EError class; the message can be suppressed with the X'04' bit setting of the MSGCTL parameter
AUDITERWrites the message with line type ER to the audit trail
COUNTIncrements the error count (ERCNT) parameter

Back to list of messages