12. Report-Writer Statements : Report Structure Statements : .Footer Statement--Begin Formatting Statements for the Footer : Examples
 
Share this page                  
Examples
1. Specify printing a page number at the bottom of each page
.footer page
    .newline
    .center
    .print '-,' page_number (f2), '-'
    .newline
2. Print the sum of column named "wholesale cost" (a delimited identifier), at the end of the report
.footer report
.tab 10
.print 'TOTAL COSTS: ', sum("wholesale cost"),
         ('$------.zz')
.newline