PAGE TRAILER
Defines the printing commands for the tail of all pages of a report.
The PAGE TRAILER control block specifies what information, if any, appears at
the bottom of each page of output from the report.
The runtime system executes the statements in the
PAGE TRAILER control block
before the PAGE HEADER control block when a new page is needed. New pages can be
initiated by any of the following conditions:PRINTattempts to print on a page that is already full.SKIP TO TOP OF PAGEis executed.SKIP n LINESspecifies more lines than are available on the current page.NEEDspecifies more lines than are available on the current page.
You can use the PAGENO operator
in a PRINT statement within a PAGE TRAILER control block to
automatically display the page number at the bottom of every page, as in this example:
PAGE TRAILER
PRINT COLUMN 28, PAGENO USING "page <<<<"
The BOTTOM MARGIN specification (in the OUTPUT section ) affects how close
to the bottom of the page the output displays the page trailer.
Important:
The restrictions that apply to FIRST PAGE HEADER
also apply to PAGE TRAILER.