Declaring a report

!report

Declare a report


SYNTAX

!report report_id {
 declarations
 statements
}

Declare a report. All declarations and statements which are local to that report are placed within the braces of the !report structure. Globally declared files, temporary fields, functions and subroutines may also be referenced.

The report is run by means of the command

run report report_id

from the main body of the program (outside the !report sections).

The report_id is the identifier by which the report is known within the program. It must obey normal identifier naming rules, and must be unique as an identifier name within the program.


EXAMPLE

!report StockList {
!drive Stock
     ...

}

RELATED TOPICS

Reports

run report