Informix Error -4153: Warning: The constant expression with the USING clause has been evaluated based on the values of the environment variables at compile time.
Cause and resolution
Warning: The constant expression with the USING clause has been evaluated based on the values of the environment variables at compile time.
This warning is generated when a value for a CONSTANT contains a USING clause. The settings for environment variables DBFORMAT and DBMONEY can affect the result of the USING operation. This warning reminds the user that the USING clause in the CONSTANT statement will be evaluated at compile time and might not be consistent with other USING clauses that are evaluated at runtime.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4153 is a compiler warning: per the official guidance, a CONSTANT value uses a USING
clause, and the DBFORMAT/DBMONEY environment variable settings affect that clause's
result — the warning reminds you the CONSTANT's USING clause is evaluated at compile time,
possibly inconsistent with other USING clauses evaluated at runtime.
- A
CONSTANTstatement's value includes aUSINGclause, per the official guidance — the direct cause; not itself an error.
Solutions / Resolution
- Confirm the compile-time
DBFORMAT/DBMONEYsettings match the intended runtime formatting, per the official guidance, since the constant'sUSINGresult is fixed at compile time.
Examples
A constant using USING
CONSTANT formatted_zero = 0 USING "###.##"
Diagnostic Checks
- Check the compile-time
DBFORMAT/DBMONEYenvironment variable settings, and confirm they match what's intended for the constant's formatted value.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -4153 in this set yet.
A CONSTANT's USING clause is evaluated at compile time, based on compile-time
DBFORMAT/DBMONEY settings — confirm those settings match what's intended.