Informix Error -8001: The number of newlines specified for TOP MARGIN, FIRST PAGE HEADER (PAGE HEADER), PAGE TRAILER, and BOTTOM MARGIN must leave enough room on the page for the printing of the ON EVERY RECORD clause.
Cause and resolution
The number of newlines specified for TOP MARGIN, FIRST PAGE HEADER (PAGE HEADER), PAGE TRAILER, and BOTTOM MARGIN must leave enough room on the page for the printing of the ON EVERY RECORD clause.
The total number of lines that are defined for all the above statements exceeds the page length. Check that you entered the desired number of lines in each statement in the OUTPUT section and in the header and trailer specifications of the FORMAT section.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-8001 fires when a report's margin/header/trailer line counts together leave no room for the
detail (ON EVERY RECORD) output — per the official guidance, the total lines defined across
TOP MARGIN, FIRST PAGE HEADER/PAGE HEADER, PAGE TRAILER, and BOTTOM MARGIN exceed the
page length.
- The combined line counts of the margin/header/trailer statements exceed the page length, per the official guidance — the direct, only cause.
Solutions / Resolution
- Check the number of lines entered in each statement in the
OUTPUTsection and in the header/trailer specifications of theFORMATsection, per the official guidance, and reduce them so detail rows still fit.
Examples
N/A
No specific triggering statement is documented beyond the combined line counts exceeding page length.
Diagnostic Checks
- Add up the line counts for
TOP MARGIN,PAGE HEADER,PAGE TRAILER, andBOTTOM MARGIN, and compare againstPAGE LENGTHin theOUTPUTsection, leaving room for at least one detail line.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -8001 in this set yet.
A report's margin/header/trailer line counts leave no room for detail rows — reduce them so they fit within the page length.