Informix Error -4387: The right margin must be greater than the left margin.
Cause and resolution
The right margin must be greater than the left margin.
If the right margin of a report were no greater than the left margin, there would be no room on each line for data. Check both MARGIN statements in the OUTPUT section for reasonable values.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4387 fires when a report's right margin isn't greater than its left margin — per the official guidance, this would leave no room on each line for data.
- A report's
MARGINstatements specifying a right margin no greater than the left margin, per the official guidance — the direct, only cause.
Solutions / Resolution
- Check both
MARGINstatements in theOUTPUTsection for reasonable values, per the official guidance.
Examples
An invalid margin pair
OUTPUT
LEFT MARGIN 10
RIGHT MARGIN 5
-- -4387: right margin must be greater than left margin
Corrected
OUTPUT
LEFT MARGIN 5
RIGHT MARGIN 80
Diagnostic Checks
- Check the report's
LEFT MARGIN/RIGHT MARGINvalues, and confirm the right margin is genuinely greater than the left.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -4387 in this set yet.
A report's right margin isn't greater than its left margin — correct the MARGIN values.