Informix Error -8025: The comment close symbol, }, has been found on line line-number, character char-number, even though no comment has been opened.
Cause and resolution
The comment close symbol, }, has been found on line line-number, character char-number, even though no comment has been opened.
Unless comment symbols are enclosed in quotes, they must be balanced. Probably the open-comment symbol was accidentally deleted during editing. Change the file so that comments are properly delimited.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-8025 fires when a } comment-close symbol appears with no matching open comment — per the
official guidance, unless enclosed in quotes, comment symbols must be balanced.
- The corresponding open-comment symbol was accidentally deleted during editing, per the official guidance — the direct, likely cause.
Solutions / Resolution
- Change the file so that comments are properly delimited, per the official guidance.
Examples
An unmatched close-comment symbol
PRINT "Order Report" }
-- -8025: no matching { was opened
Corrected
PRINT "Order Report"
Diagnostic Checks
- Check the reported line/character position, and confirm the
}has a matching{earlier in the file.
Related Errors / Related Topics
- -8015 — "An open comment symbol, {, was found inside an already open comment..." A related comment-syntax error, about nested comments rather than an unmatched close symbol.
- -8016 — "A comment has been opened but not closed..." A related comment-syntax error, about a comment left open rather than an unmatched close symbol.
A } close-comment symbol appears with no matching { — check for an accidentally deleted
open symbol.