Informix Error -8109
-8109 Wordwrap may not be used within PAGE HEADERS or TRAILERS.
ACEPREP needs to know how many lines will be filled in header and trailer sections (otherwise, it does not know how many detail rows to put on the page). However, printing with the WORDWRAP function can fill a variable number of lines, depending on the words. Therefore, it is not allowed in page header or trailer sections.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-8109 fires when WORDWRAP is used inside a PAGE HEADER/TRAILER — per the official
guidance, ACEPREP needs to know a fixed line count for headers/trailers, but WORDWRAP can
fill a variable number of lines depending on the words.
WORDWRAPused inside aPAGE HEADER/TRAILER, per the official guidance — the direct, only cause.
Solutions / Resolution
- Move
WORDWRAPprinting to the detail (EVERY ROW) section, where a variable line count doesn't need to be predicted.
Examples
WORDWRAP inside a PAGE HEADER
PAGE HEADER
PRINT notes WORDWRAP RIGHT MARGIN 80
-- -8109: WORDWRAP's line count is unpredictable here
Corrected
EVERY ROW
PRINT notes WORDWRAP RIGHT MARGIN 80
Diagnostic Checks
- Check
PAGE HEADER/TRAILERsections forWORDWRAP, and move it to the detail section.
Related Errors / Related Topics
- -8112 — "Within an IF-THEN-ELSE statement of a header or trailer clause, the number of
lines printed in the IF part must equal the number of lines printed in the ELSE part." A
related header/trailer line-count-predictability restriction, about
IF/ELSEbranches rather thanWORDWRAP. - -8114 — "The number of lines to be printed in the top and bottom margins plus the lines to be printed in the page header and trailer clauses exceeds or equals the page length." A related header/trailer line-count restriction, about the total fitting within the page rather than predictability.
WORDWRAP is used inside a PAGE HEADER/TRAILER, whose line count must be predictable —
move it to the detail section.