numeric operation is too small to hold the result (C G D F)
15 pts.
0
Q:
numeric operation is too small to hold the result (C G D F)
HOW TO REMOVE THIS ERROR-"The target for a numeric operation is too small to hold the result (C G D F)"?
ASKED: Oct 3 2008  5:49 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
24610 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
No recovery is possible. D-ump the job
The program did a calculation which produced a result that is bigger than the variable
Either there was bad data or the program needs to be changed to provide a larger variable.
If you have the source you can see which statement was in error.
The dump will provide the values of all variables at the time of the error.
Last Answered: Oct 3 2008  1:08 PM GMT by Philpl1jb   24610 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Modiyooch   370 pts.  |   Oct 3 2008  7:45PM GMT

I avoid this error in my logic. I validate the result before performing the calculation. If the result is greater than the field size I either skip the calc, move the highest value the field can hold, or return a message to the user.

 

Philpl1jb   24610 pts.  |   Oct 3 2008  8:19PM GMT

These can also be captured with MONITOR.
But before preventing it, it’s necessary to determine why it’s occuring and correct the issue.
Having a program error may not be as bad as having it appear to work when it really isn’t.
The error message is good, skipping the calc or filling it with the max value might be ok..but it might be a disaster.

 
0