Informix Error -22624: INTEGER type length must be 2 or 4.
Cause and resolution
INTEGER type length must be 2 or 4.
This message indicates an IBM Informix ESQL/FORTRAN preprocessor error. A FORTRAN host variable of type INTEGER must be declared as INTEGER*2 or INTEGER*4. Correct the length of the INTEGER declaration and try again.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-22624 fires when a FORTRAN host variable of type INTEGER isn't declared INTEGER*2 or
INTEGER*4 — per the official guidance, those are the only supported lengths.
- An
INTEGERhost variable declared with a length other than 2 or 4, per the official guidance — the direct, only cause.
Solutions / Resolution
- Correct the
INTEGERdeclaration toINTEGER*2orINTEGER*4, per the official guidance.
Examples
An unsupported INTEGER length
INTEGER*8 MYVAR
Corrected
INTEGER*4 MYVAR
Diagnostic Checks
- Check the flagged
INTEGERvariable's declared length, and correct it to 2 or 4.
Related Errors / Related Topics
- -22623 — "Data type length must be greater than zero." The general data-type-
length error this is a specific case of, for
INTEGER. - -22625 — "REAL type length must be 4 or 8." The same class of type-length
restriction, for
REALrather thanINTEGER.
An INTEGER host variable's declared length wasn't 2 or 4 — correct it.