HP 3000 Manuals

END REPORT [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Reference Manual

END REPORT 

The END REPORT statement closes a report normally.  It causes all trailer
sections to be printed, including the report trailer.

This statement can occur anywhere in the report subunit.  It can be used
as a command.

Syntax 

END REPORT

Examples 

The following example shows a line containing the END REPORT statement.

     100 END REPORT

The END REPORT statement gives an error if there is not an active report.
If report output has not started, this statement starts the output.

The END REPORT statement prints all TRAILER sections in descending order
from level nine to level one.  After these trailers, the REPORT TRAILER
section executes.  Finally a PAGE TRAILER is printed and a page eject
occurs to clear the last page of the report.

The END REPORT statement is guaranteed to end the report, even if an
error occurs.  Most errors are caught in the report sections and halt the
program, but a few errors can occur during END REPORT itself.  Whether
there are errors or not, there are not active reports at the end of this
statement.



MPE/iX 5.0 Documentation