REPORT TRAILER [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation
HP Business BASIC/XL Reference Manual
REPORT TRAILER
The REPORT TRAILER section defines a block of code to be executed at the
end of a report only if the END REPORT statement is executed. The report
trailer is printed after the break-level trailers. This section is
optional. The REPORT TRAILER statement must occur within a report
description; that is, between the REPORT HEADER statement and the END
REPORT DESCRIPTION statement. If neither the WITH or USING clause is
present, the statement produces no output, but, there must be at least
one line of space left on the page.
Syntax
[ [LINES]]
REPORT TRAILER [WITH num_lines [LINE ]]
[USING image [; output_list]]
Parameters
num_lines The maximum number of lines expected to be needed by the
section statement. This number reflects ALL output done
by the section.
image An image string, or a line reference to an IMAGE line.
output-list A list of output items, identical to the list used by
the PRINT USING statement.
Examples
The following examples show the use of the REPORT TRAILER statement.
100 REPORT TRAILER
100 REPORT TRAILER WITH 3 LINES USING Rt;DATE$
If a report is not active, the REPORT TRAILER statement generates an
error.
If the statement is encountered when a report section is not executing,
an error occurs. If a report section is active; for example, a TRAILER
section, that section ends.
The REPORT TRAILER section becomes active when END REPORT executes. All
of the break level trailers are printed before the report trailer. A
page trailer is printed after the report trailer.
MPE/iX 5.0 Documentation