12. Report-Writer Statements : Report Structure Statements : .Header Statement—Begin Formatting Statements for the Header : Examples
 
Share this page                  
Examples
1. Specify a page header.
.header page
        .tab 10
        .print 'Accounts Receivable Aging
           Report by Client'
        .newline
2. Specify a report header that prints the current date, the current time and the name of the report at the start of the report.
.header report
        .leftmargin 10
        .rightmargin 70
        .left
        .print current_date
        .right
        .print current_time
        .newline 2
        .underline
        .center
        .print 'Annual Costs'
        .nounderline
        .newline
3. Specify a break header for the column "last name."
.delimid
.query
    select "last name", "first name"
        from names_tbl
.sort "last name"
.header "last name"
    .newpage