When I run a user defined function db2 returns the following error
SQL0802N Arithmetic overflow or other arithmetic exception occurred.
SQLSTATE=22003
without giving me any indication about which function is the source of that error. Is that any setting on db2 so that I can have something like a stack trace or better information. By just looking at that message I don't know where to start investigating.