Informix Error -2016: A comment has been opened, but not closed. The last comment begun was opened on line line, character column.
Cause and resolution
A comment has been opened, but not closed. The last comment begun was opened on line line, character column.
Insert a close-comment symbol where appropriate in the report specification.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-2016 fires when a comment is opened with { but never closed with } before the end of the
specification — per the official guidance, the message reports the exact line/character where
the unclosed comment began.
- A
{comment-open symbol with no matching}, per the official guidance — the direct, only cause.
Solutions / Resolution
- Insert the appropriate close-comment symbol at the correct location, per the official guidance, using the reported line/character position to find where the comment began.
Examples
An unclosed comment
ATTRIBUTES
order_id = order_id; { note about this field
status = status;
-- -2016: the { before "note" was never closed
Corrected
ATTRIBUTES
order_id = order_id; { note about this field }
status = status;
Diagnostic Checks
- Use the reported line/character position to locate the unclosed comment, and add the
missing
}.
Related Errors / Related Topics
- -2015 — "An open comment symbol, { ... was found inside an already open comment." A
related comment-syntax error, about a nested
{rather than a comment left open at the end.
A { comment was never closed — use the reported position to find and close it.