Informix Error -22277
-22277 Invalid storage mode. Assuming byte-storage mode.
Micro-Focus COBOL/2 has either byte or word storage mode for USAGE COMP/BINARY variables. Check the current storage mode. To specify byte or word storage, set the INFORMIXCOBSTORE environment variable, as the IBM Informix Guide to SQL: Reference discusses.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-22277 fires when Micro Focus COBOL/2's storage mode for USAGE COMP/BINARY variables
is set incorrectly — per the official guidance, this compiler has either byte or word
storage mode, and byte mode is assumed when the setting is invalid.
- An invalid storage-mode setting for
USAGE COMP/BINARYvariables, per the official guidance — the direct, only cause.
Solutions / Resolution
- Set
INFORMIXCOBSTOREto specify byte or word storage explicitly, per the official guidance — see the IBM Informix Guide to SQL: Reference.
Examples
Setting INFORMIXCOBSTORE
$ export INFORMIXCOBSTORE=BYTE
Diagnostic Checks
- Check the current
INFORMIXCOBSTOREsetting, and set it explicitly toBYTEorWORDper the Guide to SQL: Reference.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -22277 in this set yet.
The storage mode for USAGE COMP/BINARY variables was invalid, defaulting to byte
mode — set INFORMIXCOBSTORE explicitly.