2 Report Description Statements

The TRAILER Statement

The TRAILER statement defines what is to be done as a follow up operation for a specified break condition. Each TRAILER statement is directly associated with a break condition. There may be only one active TRAILER statement for each of the nine possible break levels.

TRAILER level [WITH number LINES]

[USING [;list]][block statements]

The parameters are:

level
A numeric expression evaluating to an integer from 0 to 9. This integer associates the trailer to a break level.
number
The number of lines required for the trailer. If not entered, the value of number defaults to 1. If the trailer requires more than one line, it is important that this parameter be used to ensure that a page break does not occur in the middle of the trailer. If a page break occurs in the middle of a trailer (because the maximum number of lines per page has been printed), an error will result. The number is evaluated every time the TRAILER statement is executed and can be dynamically changed.
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 TRAILER statement. They will be evaluated and executed immediately after the TRAILER statement.
Some examples of this statement follow.


200  TRAILER 1 USING P_trail1;OLDCV$(1),TOTAL(1,1)
.
.
.
690  P_trail: IMAGE "TOTAL",X,2A,X,"DIVISION",26X,DDDCDDDCDDDPDD
The OLDCV$ and TOTAL functions are described in page 53 . This trailer only requires one line, so the WITH...LINES parameter is not entered.


240  TRAILER 3 WITH 2 LINES USING P_trail3;OLDCV(3),TOTAL(3,1)
.
.
.
730  P_trail3: IMAGE /,"TOTAL DEPT",X,2A,29X,DDDCDDDCDDDPDD
This trailer requires two lines as stated in line 240. If it were not stated and a page break occurred after the first line was printed, an error would occur.


Eloquence Report Manual - 19 DEC 2002