Informix Error -33062: Missing ENDIF.
Cause and resolution
Missing ENDIF.
An IFDEF or IFNDEF statement has no matching ENDIF statement prior to the end of the source file. Work upward from the end of the file, and check that each IFDEF and IFNDEF statement is paired with a matching ENDIF. Possibly the ENDIF was not recognized due to another error.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-33062 fires when an IFDEF/IFNDEF has no matching ENDIF before the end of the source
file — per the official guidance, possibly because the ENDIF wasn't recognized due to
another error.
- An
IFDEF/IFNDEFwith no matchingENDIFin the file, per the official guidance — the direct cause. - An
ENDIFpresent but unrecognized because of another error, per the official guidance — an indirect cause.
Solutions / Resolution
- Work upward from the end of the file, checking that each
IFDEF/IFNDEFis paired with anENDIF, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a missing ENDIF.
Diagnostic Checks
- Check every
IFDEF/IFNDEFin the file for a matchingENDIF, working from the end of the file backward.
Related Errors / Related Topics
- -33052 — "Unmatched ELSE." The complementary error, a stray
ELSErather than a missingENDIF. - -33053 — "Unmatched ENDIF." The complementary error, a stray
ENDIFrather than a missing one. - -33067 — "ELIF without IFDEF." A related conditional-pairing error.
- -33068 — "ELIF after ELSE." A related conditional-ordering error.
An IFDEF/IFNDEF had no matching ENDIF in the file — check the pairing, working
backward from the end of the file.