BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Sarah-R
Obsidian | Level 7

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;

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Sarah-R
Obsidian | Level 7

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;

 

 

View solution in original post

3 REPLIES 3
ed_sas_member
Meteorite | Level 14

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,

ed_sas_member
Meteorite | Level 14

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;
Sarah-R
Obsidian | Level 7

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;

 

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1995 views
  • 0 likes
  • 2 in conversation