style=celldataemphasis;
dataname=grain;
header='Grain';
end;
define z;
style=celldatalarge;
dataname=kilotons;
header='Kilotons';
end;
define w;
style=celldatasmall;
dataname=kilotons;
header='Kilotons';
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 celldatasimple /
fontfamily=arial
backgroundcolor=very light vivid blue
color=white;
style celldataemphasis from celldatasimple /
color=red
fontstyle=italic;
style celldatalarge from celldataemphasis /
fontweight=bold
fontsize=5;
end;
run;
proc template;
define style concepts.style2;
parent=concepts.style1;
style celldataemphasis from celldataemphasis /
backgroundcolor=yellow;
style celldatasmall from celldatalarge /
fontsize=2;
end;
ods html body='display1-body.htm'
style=concepts.style2;
data _null_;
set test;
file print ods=(template='mytable');
put _ods_;
run;
ods html close;
Programs That Illustrate Inheritance 1085
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.