2 Report Description Statements

The REPORT TRAILER Statement

The REPORT TRAILER statement is used to print a one-time trailer just prior to report termination. It is invoked by execution of the END REPORT statement, and is executed after all TRAILERS but prior to the last PAGE TRAILER.

REPORT TRAILER [WITH number LINES]

[USING [;list]][block statements]

The parameters are:

number
The number of lines required for the trailer. If not entered, the value of number defaults to 1. If the report trailer requires more than one line, it is important that this parameter be used to ensure that the trailer be printed on one page. If a page break occurs in the middle of a trailer, an error will occur.
line id
A line number or label referencing an IMAGE statement.
image string
A list of image specifiers describing the output format and enclosed in quotes.
list
This may be a list of string, numeric or array variables, literals, constants or expressions to be printed according to the image referenced.
block statements
Statements may follow the REPORT TRAILER statements. They will be evaluated and executed immediately after the TRAILER statement.
An example of this statement follows:


160  REPORT TRAILER WITH 5 LINES USING  R_trail; TOTAL(0,1), TOTAL(0,1),
     /NUMBREAK(1)
170  PRINT USING R_2tr; AVG(0,1)
.
.
.
650  R_trail:  IMAGE 2/,22x,"TOTAL COMPANY" 10x,DCDDDCDDDPDD,/,22x,
               "AVG PER " "DIVISION",7x,DCDDDCDDDPDD
656  R_2tr:    IMAGE 22X,"AVG PER ITEM", 11X, DDDCDDDPDD
The TOTAL, NUMBREAK, and AVG functions are described in page 53 .


Eloquence Report Manual - 19 DEC 2002