Informix Error -33046: Indicator cannot be used with records.
Cause and resolution
Indicator cannot be used with records.
This message is a warning only. You cannot specify an Indicator variable for input to a host record or data structure. The indicator is ignored. An indicator variable must be associated with a single data item. If you need to use an indicator with a particular member of this record, you must list all the record members.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-33046 is a preprocessor warning — per the official guidance, an indicator variable was specified for a host record/data structure, which isn't supported; the indicator is ignored. An indicator must be associated with a single data item.
- An indicator variable specified for an entire host record/data structure, per the official guidance — the direct, only cause.
Solutions / Resolution
- If an indicator is needed for a specific member, list all the record members individually and apply the indicator to the needed one, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond an indicator on a whole record.
Diagnostic Checks
- Check whether the indicator was intended for a specific record member, and list the members individually if so.
Related Errors / Related Topics
- -33018 — "Indicator variables are not allowed in this clause." A related indicator-variable restriction, on the clause context generally rather than records specifically.
An indicator variable was specified for a whole host record, which isn't supported (and is ignored) — list record members individually if an indicator is needed for one.