Creating Enhanced List and Summary Reports |
Defining Column Attributes |
Specifying Column Widths In the previous example of SAS listing output, you might have noticed that several headings were wrapped over two lines. (In HTML output, the longest cell value determines the column width, so wrapping doesn't occur.) If a variable in the input data set doesn't have a format associated with it, the default PROC REPORT column width is
The character variables |
Partial PROC REPORT Output, SAS Listing
|
To specify a width for columns in your report, use the WIDTH=
attribute in the DEFINE statement. You can specify values from
1 to the value of the LINESIZE= system option.
The WIDTH= attribute has no effect on HTML output.
To specify column widths that accommodate the column headings for proc report data=flights.europe nowd; where dest in ('LON','PAR'); column flight orig dest mail freight revenue; define revenue / format=dollar15.2; define flight / width=6; define orig / width=4; define dest / width=4; run;Now the headings appear on one line. |
|
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.