Informix Error -33031: Statement label is not allowed in this statement.
Cause and resolution
Statement label is not allowed in this statement.
This message is a warning only. You used a label on a statement that does not generate any real code in the output file. Refer to the embedded-language manual for the correct use of labels.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-33031 is a preprocessor warning — per the official guidance, a label was placed on a statement that doesn't generate any real code in the output file.
- A label placed on a statement that produces no output code, per the official guidance — the direct, only cause.
Solutions / Resolution
- Review the embedded-language manual for correct label usage, per the official guidance, and remove or relocate the label if it was placed in error.
Examples
N/A
No specific triggering statement is documented beyond a label on a no-code statement.
Diagnostic Checks
- Check whether the flagged label serves a purpose, and remove or relocate it if it's on a statement that generates no real code.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -33031 in this set yet.
A label was placed on a statement that generates no real output code — this is a warning only; remove or relocate the label if unintended.