Informix Error -8121: The specified WORDWRAP RIGHT MARGIN value is out of range. It must be greater than or equal to the current column and less than or equal to the report's right.
Cause and resolution
The specified WORDWRAP RIGHT MARGIN value is out of range. It must be greater than or equal to the current column and less than or equal to the report's right.
The right margin of a WORDWRAP clause is used to set a narrower right margin than the one that applies to the report as a whole. The effective left margin of a WORDWRAP display is the current column when WORDWRAP is processed. The right margin must fall between the current column and the report margin.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-8121 fires when a WORDWRAP right-margin value falls outside the valid range — per the
official guidance, it must be at least the current column and at most the report's right
margin.
- A
WORDWRAPright-margin value less than the current column, per the official guidance — the first named case. - A
WORDWRAPright-margin value greater than the report's right margin, per the official guidance — the second named case.
Solutions / Resolution
- Set the
WORDWRAPright-margin value between the current column and the report's right margin, per the official guidance.
Examples
An out-of-range WORDWRAP margin
OUTPUT
RIGHT MARGIN 80
...
PRINT COLUMN 10, notes WORDWRAP RIGHT MARGIN 90
-- -8121: 90 exceeds the report's right margin of 80
Corrected
PRINT COLUMN 10, notes WORDWRAP RIGHT MARGIN 80
Diagnostic Checks
- Check the report's right margin (set in
OUTPUT), and confirm everyWORDWRAPright margin value stays between the current column and that value.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -8121 in this set yet.
A WORDWRAP right-margin value is outside the valid range — keep it between the current
column and the report's right margin.