M204.2985: Difference between revisions
| No edit summary | No edit summary | ||
| Line 13: | Line 13: | ||
| <b>Response:</b> | <b>Response:</b> | ||
| <p> | <p> | ||
| <b>Variable too small for result</b>< | <b>Variable too small for result</b> | ||
| <p> | |||
| In an assignment statement, the %variable on the left side of the statement is too small | In an assignment statement, the %variable on the left side of the statement is too small | ||
| to contain the value of the numeric expression on the right side of the statement | to contain the value of the numeric expression on the right side of the statement | ||
| Line 20: | Line 21: | ||
| generated. Retry the request. | generated. Retry the request. | ||
| </p> | </p> | ||
| Invalid null conversion | <p> | ||
| An attempt has been made to convert a null string into a numeric data  | <b>Invalid null conversion</b> | ||
| Invalid numeric conversion | <p> | ||
| An attempt has been made to convert a null string into a numeric data type: This is not allowed | |||
| </p> | |||
| <p> | |||
| <b>Invalid numeric conversion</b> | |||
| An attempt has been made to convert a string into a numeric data types for which there is no equivalent number: This is not allowed | |||
| <p> | |||
| </p> | |||
| </p> | </p> | ||
Revision as of 00:00, 22 October 2025
M204.2985 EVALOPT trapped error: token
EVALOPT has trapped one of the following Errors
- Variable too small for result
- Invalid null conversion
- Invalid numeric conversion
Response:
Variable too small for result
In an assignment statement, the %variable on the left side of the statement is too small to contain the value of the numeric expression on the right side of the statement Change the length or format of the %variable on the left side of the expression to accommodate the size number generated, or reduce the size of the value generated. Retry the request.
Invalid null conversion
An attempt has been made to convert a null string into a numeric data type: This is not allowed
Invalid numeric conversion An attempt has been made to convert a string into a numeric data types for which there is no equivalent number: This is not allowed
Version introduced: x.x
Message attributes:
| RETCODEO=0 | Sets online return code | 
|---|---|
| RETCODEB=4 | Sets batch (single user) return code | 
| CLASS=E | Error class; the message can be suppressed with the X'04' bit setting of the MSGCTL parameter | 
| AUDITER | Writes the message with line type ER to the audit trail | 
| COUNT | Increments the error count (ERCNT) parameter |