SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Producing HTML Output
Changing the Appearance of HTML Output


The STYLE= Option

You can change the appearance of your HTML output by using the STYLE= option in the ODS HTML statement.


General form, STYLE= option:
STYLE=style-name

where style-name is the name of a valid SAS or user-defined style definition.

Note: Don't enclose style-name in quotation marks.


Example

Preset style definitions are shipped with the SAS System. In the program below, the STYLE= option applies the Brick style to the output for both PROC PRINT steps.

      ods listing close;
      ods html body='c:\records\data.html'(url='data.html')
               contents='c:\records\toc.html'(url='toc.html')
               frame='c:\records\frame.html'
               style=brick;
      proc print data=clinic.admit label;
         var id sex age height weight actlevel;
         label actlevel='Activity Level';
      run;
      proc print data=clinic.stress2;
         var id resthr maxhr rechr;
      run;
      ods html close;
      ods listing;

The following example shows PROC PRINT output with the Brick style applied. Note: The spacing and font sizes in this example have been reduced to minimize page size.


Obs Sex Age Date Height Weight ActLevel
1 M 27 1 72 168 HIGH
2 F 34 3 66 152 HIGH
3 F 31 17 61 123 LOW
4 F 43 31 63 137 MOD
5 M 51 4 71 158 LOW
6 M 29 6 76 193 HIGH
7 F 32 9 67 151 MOD
8 M 35 13 70 173 MOD
9 M 34 22 73 154 LOW
10 F 49 27 64 172 LOW

 

back||next


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

Terms of Use & Legal Information | Privacy Statement