end;
end;
run;
proc template;
/* to ensure a fresh start with the styles */
delete concepts.style1;
delete concepts.style2;
run;
proc template;
define style concepts.style1;
style colors /
'default'=white
'fancy'=very light vivid blue
'medium'=red ;
style celldatasimple /
fontfamily=arial
backgroundcolor=colors('fancy')
color=colors('default');
style celldataemphasis from celldatasimple /
color=colors('medium')
fontstyle=italic;
style celldatalarge from celldataemphasis /
fontweight=bold
fontsize=3;
end;
run;
proc template;
define style concepts.style2;
parent=concepts.style1;
style colors from colors/
'dark'=dark blue;
style celldataemphasis from celldataemphasis /
backgroundcolor=white;
style celldatasmall from celldatalarge /
fontsize=5
color=colors('dark')
backgroundcolor=colors('medium');
end;
run;
ods html body='display1-body.htm'
style=concepts.style2;
data _null_;
set test;
file print ods=(template='mytable');
put _ods_;
run;
ods html close;
This version of the code does not use the FROM option in the STYLE statement to
create the Colors style element in the Concepts.Style2 style template.
ods path sashelp.tmplmst(read) sasuser.templat(update);
title;
options nodate pageno=1 linesize=72 pagesize=60;
1082 Appendix 2 Example Programs

Get SAS 9.4 Output Delivery System, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.