Informix Error -8006: A quoted string may not exceed 80 characters in length.
Cause and resolution
A quoted string may not exceed 80 characters in length.
You must reduce the quoted string to a maximum of 80 characters. In a PRINT statement, simply divide the string into shorter parts, and separate the parts with commas.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-8006 fires when a quoted string literal in a report specification exceeds 80 characters — per the official guidance.
- A quoted string longer than 80 characters, per the official guidance — the direct, only cause.
Solutions / Resolution
- Reduce the quoted string to 80 characters or fewer, per the official guidance.
- In a
PRINTstatement, divide the string into shorter parts separated by commas, per the official guidance.
Examples
Splitting an over-length string
PRINT "This is the first part of a longer message that would otherwise ",
"exceed the 80-character quoted-string limit if written as one literal."
Diagnostic Checks
- Check every quoted string in the report specification for length, and split any over 80 characters into multiple comma-separated pieces.
Related Errors / Related Topics
- -8007 — "There is an unmatched quote in a quoted string." A related quoted-string error, about an unbalanced quote rather than excessive length.
A quoted string exceeds 80 characters — split it into shorter, comma-separated parts.