| Enhancing HTML Tabular Reports |
| Applying the STYLE=
Option |
| In the lesson Producing HTML Output, you learned to specify styles for HTML output, applying the STYLE= option to change the look of your output. Although that lesson discussed the PRINT procedure, the STYLE= option also works with PROC TABULATE: |
ods listing close;
ods html path='c:\data'(url=none)
body='table.html' style=brick;
proc tabulate data=clinic.admit;
var fee;
class sex;
table sex all,fee;
run;
ods html close;
ods listing;
|
|
||||||||||
ods listing close;
ods html path='c:\data'(url=none)
body='table.html' style=brown;
proc tabulate data=clinic.admit;
var fee;
class sex;
table sex all,fee;
run;
ods html close;
ods listing;
|
|
||||||||||
| When you specify the STYLE= option in an ODS HTML statement, the specified style controls the overall appearance of your output. But you can use the STYLE= option within PROC TABULATE to change the appearance of individual rows, columns, and cells. |
General form, STYLE= option within PROC TABULATE:
where
|
| Because you can apply the STYLE= option to any part of your table, it provides a great amount of creative control. |
![]() ![]() |
|
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.