Informix Error -33053: Unmatched ENDIF.
Cause and resolution
Unmatched ENDIF.
An IFDEF or IFNDEF statement does not precede this ENDIF statement. Review the source lines that precede this point; the preceding statement was omitted or might not have been recognized due to an earlier error.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-33053 fires when an ENDIF statement has no preceding matching IFDEF/IFNDEF — per
the official guidance, the preceding statement was either omitted or wasn't recognized due
to an earlier error.
- An
ENDIFwith no precedingIFDEF/IFNDEF, per the official guidance — the direct cause. - A preceding
IFDEF/IFNDEFunrecognized because of an earlier error, per the official guidance — an indirect cause.
Solutions / Resolution
- Review the source lines preceding this point for a missing or unrecognized
IFDEF/IFNDEF, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond an unmatched ENDIF.
Diagnostic Checks
- Check for a preceding
IFDEF/IFNDEF, and fix any earlier error that might have hidden it.
Related Errors / Related Topics
- -33052 — "Unmatched ELSE." The same class of preprocessor conditional-pairing
error, for
ELSErather thanENDIF. - -33062 — "Missing ENDIF." The complementary error, an
IFDEF/IFNDEFwith noENDIFat all, rather than a stray one. - -33067 — "ELIF without IFDEF." A related conditional-pairing error, for
ELIF. - -33068 — "ELIF after ELSE." A related conditional-ordering error.
An ENDIF had no preceding matching IFDEF/IFNDEF — check preceding source for a
missing or unrecognized conditional.