Informix Error -22645: Incorrect dimension on array variable.
Cause and resolution
Incorrect dimension on array variable.
This message indicates an IBM Informix ESQL/FORTRAN preprocessor error. The symbol is not an array variable or the dimension is incorrect.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-22645 fires when a symbol used as an array either isn't declared as an array or its dimension is incorrect — per the official guidance.
- The symbol not actually being an array variable, per the official guidance — the first named case.
- The array's dimension being incorrect for the reference, per the official guidance — the second named case.
Solutions / Resolution
- Check the symbol's declaration, per the official guidance's implication, and confirm it's declared as an array with the expected dimension.
Examples
N/A
No specific triggering statement is documented beyond a non-array symbol or an incorrect dimension.
Diagnostic Checks
- Check the flagged symbol's declaration, and confirm it's an array with a dimension matching its usage.
Related Errors / Related Topics
- -22646 — "Incorrect levels of indirection." A related array-usage error, on indexing/indirection depth rather than the array's dimension being incorrect.
A symbol wasn't an array, or its dimension was incorrect — check its declaration.