Informix Error -22625: REAL type length must be 4 or 8.
Cause and resolution
REAL type length must be 4 or 8.
This message indicates an IBM Informix ESQL/FORTRAN preprocessor error. A FORTRAN host variable of type REAL must be declared as REAL*4 or REAL*8. Correct the length of the REAL declaration and try again.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-22625 fires when a FORTRAN host variable of type REAL isn't declared REAL*4 or
REAL*8 — per the official guidance, those are the only supported lengths.
- A
REALhost variable declared with a length other than 4 or 8, per the official guidance — the direct, only cause.
Solutions / Resolution
- Correct the
REALdeclaration toREAL*4orREAL*8, per the official guidance.
Examples
An unsupported REAL length
REAL*16 MYVAR
Corrected
REAL*8 MYVAR
Diagnostic Checks
- Check the flagged
REALvariable's declared length, and correct it to 4 or 8.
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
REAL. - -22624 — "INTEGER type length must be 2 or 4." The same class of type-length
restriction, for
INTEGERrather thanREAL.
A REAL host variable's declared length wasn't 4 or 8 — correct it.