HP 3000 Manuals

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


HP Business BASIC/XL Reference Manual

REPORT HEADER 

The REPORT HEADER statement marks the beginning of a report description.
This statement is required to define a report and is executed when the
report output is started.  If neither a WITH nor a USING clause is
present, the REPORT HEADER produces no output.

Syntax 

              [               [LINES]]
REPORT HEADER [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 REPORT HEADER statement.

     100 REPORT HEADER
     100 REPORT HEADER WITH 3 LINES
     200 REPORT HEADER USING Rh_image;DATE$

If no report is active, that is, BEGIN REPORT has not been executed,
program execution branches from the REPORT HEADER statement to the
statement after the matching END REPORT DESCRIPTION statement.

If a report is active and the REPORT HEADER statement is executed, two
possible actions can occur.  If another report section is active, that
section is ended.  Otherwise, the statement is unexpected and an error
occurs.

The REPORT HEADER section is executed when report output begins.  The
section only executes once.  Report output starts when any of the
following statements executes after a BEGIN REPORT statement has been
executed:

                DETAIL LINE
                TRIGGER BREAK
                TRIGGER PAGE BREAK
                END REPORT

When the REPORT HEADER section executes, the REPORT HEADER statement
output, if any, is done first.  For further information about the REPORT
HEADER refer to the WITH and USING clauses.  Execution continues with the
line following the REPORT HEADER until another Report Writer section
statement is encountered.



MPE/iX 5.0 Documentation