Declaring a report


Declare a report


!report report_id {

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.


!report StockList {
!drive Stock




run report