Informix Error -22229: Host object variable-name not declared.
Cause and resolution
Host object variable-name not declared.
The specified host variable was accessed but was not declared. You must declare the host variable in the declaration section and try again.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-22229 fires when a host variable is accessed but wasn't declared — per the official guidance.
- A host variable accessed without being declared, per the official guidance — the direct, only cause.
Solutions / Resolution
- Declare the host variable in the declaration section and try again, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond accessing an undeclared host variable.
Diagnostic Checks
- Check the declaration section for the flagged variable's declaration, and add it if missing.
Related Errors / Related Topics
- -22230 — "Identification error on host symbol variable-name." A related host- variable-declaration error, on a variable declared more than once rather than not at all.
A host variable was accessed without being declared — add its declaration.