GRAND.TOTAL, GRAND-TOTAL, CAPTION

Top  Previous  Next

 

The GRAND.TOTAL keyword (synonyms GRAND-TOTAL and CAPTION) specifies text to appear at the left edge of the grand total line when any field accumulations (AVERAGE, ENUMERATE, MAX, MIN, PERCENTAGE or TOTAL) are used.

 

 

Format

 

GRAND.TOTAL "text"

 

where

 

textis the text to appear on the grand total line.

 

 

The GRAND.TOTAL text may include control options enclosed in single quotes. These are:

 

LSuppress the grand total line completely (see also NO.GRAND.TOTAL).
PPrint the grand total line on a new page.

 

The text normally appears on the same line as the row of equals signs (=) that are shown above the total values. The PICK.GRAND.TOTAL keyword of the OPTION command can be used to move this text down to the line that holds the values.

 

 

Example

 

The command

 

LIST SALES TOTAL ORDER.VALUE GRAND.TOTAL "TOTAL"

 

might produce the report below.

 

LIST SALES TOTAL ORDER.VALUE GRAND.TOTAL "TOTAL"                      Page 1

SALES..... ORDER VALUE

19845            234.53

19858            845.50

19859            384.43

19887            279.40

19830            324.39

19886            397.23

19866            465.31

TOTAL       ===========

               2930.79

 

7 records listed.

 

 

See also:

NO.GRAND.TOTAL