Informix Error -16368
-16368 Expression contains variables from different functions.
You cannot combine variables from different functions in the same expression. If you need to know the value of such an expression, you must use PRINT to evaluate the variables from each function separately. Then enter these values as constants in the BREAK, LET, or PRINT command in place of the names of the variables.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-16368 fires when an expression combines variables from more than one function — per the official guidance.
- An expression combining variables from different functions, per the official guidance — the direct, only cause.
Solutions / Resolution
- Use
PRINTto evaluate each function's variable separately, per the official guidance, then substitute those values as constants in theBREAK/LET/PRINTcommand in place of the variable names.
Examples
An expression mixing variables from two functions
> PRINT func_a_var + func_b_var
Corrected
> PRINT func_a_var
> PRINT func_b_var
> PRINT 5 + 10
Diagnostic Checks
- Check the expression for variables belonging to more than one function, and evaluate
each separately with
PRINTbefore combining the literal values.
Related Errors / Related Topics
- -16363 — "Variable in function function-name is not active." A related variable-scope error, about referencing an inactive function's variable rather than mixing variables from different functions.
An expression mixes variables from different functions — evaluate each with PRINT
separately and combine the literal values instead.