SAS OnlineTutor HomeFAQ PageSuggested Learning PathContents+Searchback||next

Creating Enhanced List and Summary Reports
Enhancing the Heading's Appearance


To complete the job of enhancing headings in your list report, you can take advantage of two useful options in the PROC REPORT statement:

  • HEADLINE, which underlines all column headings and the spaces between them
  • HEADSKIP, which writes a blank line beneath all column headings.

These options have no effect on HTML output.


Example

In this PROC REPORT step, the PROC REPORT statement specifies both HEADLINE and HEADSKIP.


proc report data=flights.europe nowd headline headskip; where dest in ('LON','PAR'); column flight orig dest mail freight revenue; define revenue / format=dollar15.2; define flight / width=6 'Flight/Number' center; define orig / width=6 spacing=5 'Flight/Origin' center; define dest / width=11 spacing=5 'Flight/Destination' center; run;
In the SAS listing output, the column headings are underlined and are followed by a blank line.

Partial PROC REPORT Output, SAS Listing
 Flight
 Number
     Flight
     Origin
     Flight
     Destination
Mail Freight Revenue 
————————————————————————————————————————————————————————————————————
 
 821      LGA      LON         403         209   $150,634.00 
 271      LGA      PAR         492         308   $156,804.00 
 271      LGA      PAR         366         498   $190,098.00 
 821      LGA      LON         345         243   $150,634.00 
 821      LGA      LON         248         307   $193,930.00 


back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement