Informix Error -22649: Unmatched END statement-name statement.
Cause and resolution
Unmatched END statement-name statement.
This message indicates an IBM Informix ESQL/FORTRAN preprocessor error. An END STRUCTURE/UNION/MAP statement does not have a corresponding STRUCTURE/UNION/MAP statement. Check that each END STRUCTURE/UNION/MAP statement is paired with a corresponding STRUCTURE/UNION/MAP statement and try again.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-22649 fires when an END STRUCTURE/END UNION/END MAP statement has no corresponding
opening STRUCTURE/UNION/MAP statement — per the official guidance.
- An
END STRUCTURE/END UNION/END MAPwith no matching opener, per the official guidance — the direct, only cause.
Solutions / Resolution
- Check that each
END STRUCTURE/END UNION/END MAPis paired with a corresponding opening statement, per the official guidance, and correct any mismatch.
Examples
N/A
No specific triggering statement is documented beyond an unmatched END statement.
Diagnostic Checks
- Check the surrounding code for a matching
STRUCTURE/UNION/MAPopener to the flaggedENDstatement, and add or remove statements to balance them.
Related Errors / Related Topics
- -22650 — "Missing END statement-name statement." The mirror-image error, for an
opening
STRUCTURE/UNION/MAPwith no matchingENDrather than the reverse.
An END STRUCTURE/UNION/MAP statement had no matching opener — balance the block.