I am pointing a report from PROC REPORT to the HTML destination. How do I change the background color of the HTML page?
ods html file='path';
title 'title';
Proc Report data=...
run;
ods html close;
ODS Html comes with a pre-defined set of styles.
Here they are:
default
statistical
analysis
journal
journal2
rtf
listing
htmlblue.
The way you use it is:
ods html style=default; (example using the first listed style)
...
ods html close;
Hi @Sarah-R
You can use PROC TEMPLATE to define your own style options, and then use this style in the ODS HTML statement. Here is an example: https://support.sas.com/kb/23/420.html
Best,
Here is an example:
proc template;
define style Styles.Custom;
parent = Styles.Default;
style data / backgroundcolor=yellow; /*<- to be customized */
end;
run;
ods html file="your_path/your_report.html" style=custom;
proc print data=sashelp.class;
run;
ods html close;
ODS Html comes with a pre-defined set of styles.
Here they are:
default
statistical
analysis
journal
journal2
rtf
listing
htmlblue.
The way you use it is:
ods html style=default; (example using the first listed style)
...
ods html close;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.