Informix Error -4356: A page header has already been specified within this report.
Cause and resolution
A page header has already been specified within this report.
Only one PAGE HEADER control block is allowed in a report. The statements in this control block must be suitable for all pages of the report (except the very first page, for which you may write a FIRST PAGE HEADER block). Find the other PAGE HEADER control blocks, and combine all their statements into one control block.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4356 fires when a report has more than one PAGE HEADER control block — per the official
guidance, only one is allowed, and its statements must suit every page except the first (for
which a separate FIRST PAGE HEADER block may be written).
- More than one
PAGE HEADERcontrol block in the same report, per the official guidance — the direct, only cause.
Solutions / Resolution
- Find the other
PAGE HEADERcontrol blocks, and combine all their statements into one, per the official guidance.
Examples
Duplicate PAGE HEADER blocks
OUTPUT
PAGE HEADER
PRINT "Header line 1"
PAGE HEADER
PRINT "Header line 2"
-- -4356: only one PAGE HEADER block is allowed
Corrected
OUTPUT
PAGE HEADER
PRINT "Header line 1"
PRINT "Header line 2"
Diagnostic Checks
- Check the report for more than one
PAGE HEADERcontrol block, and combine them.
Related Errors / Related Topics
- -4357 — "A page trailer has already been specified within this report." The
equivalent restriction applied to
PAGE TRAILERinstead ofPAGE HEADER. - -4358 — "A first page header has already been specified within this report." The
equivalent restriction applied to
FIRST PAGE HEADERinstead ofPAGE HEADER.
A report has more than one PAGE HEADER control block — combine them into one.