HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
7- 1
Chapter 7 The Report Writer
Introduction
The Report Writer consists of HP Business BASIC/XL statements that aid in
report generation by doing various bookkeeping jobs. In the Report
Writer certain control structures cause the statements to be executed at
the appropriate times. The PRINT and IMAGE statements specify the actual
printing of the report.
Report Writer statements are categorized into the following four classes:
* Report Writer Section Statements.
* Report Writer Block Statements.
* Report Writer Executable Statements.
* Report Writer Built-In Functions.
This chapter describes the four classes of the Report Writer in detail.
Syntax and descriptions of each statement are in chapter 4.
General Information
Be aware of the following item, since it affects various Report Writer
statements:
* The report sections (REPORT HEADER, REPORT TRAILER, and REPORT EXIT)
are at level zero.
Report Writer section statements define the headers and trailers printed
in the report. These statements are included within the report
description. A REPORT HEADER section defines the beginning of the report
description and the END REPORT DESCRIPTION statement defines the end of
the report description. Both of these sections are required, whereas all
other Report Writer sections are optional.
A Report Writer section starts with a section statement. It ends when
the next section statement occurs in the report description. The section
can contain any legal HP Business BASIC/XL program statements. These
statements execute when the section is activated by the Report Writer.
The following are Report Writer section statements:
* REPORT HEADER
* REPORT TRAILER
* PAGE HEADER
* PAGE TRAILER
* HEADER
* TRAILER
* REPORT EXIT
* END REPORT DESCRIPTION
The WITH and USING clauses, used with the Report Writer section
statements, are described later in this section.
All of the report writer section statements are made BUSY and their
expressions are evaluated when BEGIN REPORT executes, preventing their
modification and deletion. When the report ends, these section
statements are no longer busy. That is, these report writer section
statements are busy for the duration of an active report.