RPG (IBM i / AS/400) · DB2 SQLCODE
What does SQLCODE -183 - Datetime Field Overflow mean in RPG (IBM i / AS/400)?
An arithmetic operation on a DATE or TIMESTAMP value produced a result outside the range DB2 for i supports, such as an interval that pushes the date before the minimum or past the maximum supported value.
An arithmetic operation on a DATE or TIMESTAMP value produced a result outside the range DB2 for i supports, such as an interval that pushes the date before the minimum or past the maximum supported value.
Bound-check date arithmetic before executing it in SQL, especially when the interval or offset is calculated or comes from outside the program.