numeric operation is too small to hold the result (C G D F)

15 pts.
Tags:
AS/400 development
AS/400 errors
HOW TO REMOVE THIS ERROR-"The target for a numeric operation is too small to hold the result (C G D F)"?

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Modiyooch
    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.
    540 pointsBadges:
    report
  • philpl1jb
    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.
    49,950 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following