Informix Error -22274: Host variables may not be USAGE POINTER.
Cause and resolution
Host variables may not be USAGE POINTER.
Change the USAGE clause for the host variable so that the host variable is not a pointer and try again.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-22274 fires when a host variable is declared USAGE IS POINTER — per the official
guidance, this isn't supported.
- A host variable declared
USAGE IS POINTER, per the official guidance — the direct, only cause.
Solutions / Resolution
- Change the host variable's
USAGEclause so it isn't a pointer, and try again, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a host variable declared USAGE IS POINTER.
Diagnostic Checks
- Check the flagged host variable's
USAGEclause, and change it away fromPOINTER.
Related Errors / Related Topics
- -22208 — "Host variables may not be USAGE INDEX." The same class of
unsupported-
USAGErestriction, forINDEXrather thanPOINTER.
A host variable was declared USAGE IS POINTER, which isn't supported — change its
USAGE clause.