data test;
input country $ 1-13 grain $ 15-18 kilotons;
datalines;
Brazil Rice 10035
China Rice 190100
India Rice 120012
Indonesia Rice 51165
United States Rice 7771
;
proc template;
define table mytable;
column x y z w;
define x;
style=celldatasimple;
dataname=country;
header='Country';
end;
define y;
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 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 /
Programs That Illustrate Inheritance 1083

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.