Features: |
PROC TABULATE statement options: FORMAT=
|
Other features: |
ODS HTML statement FORMAT statement |
Data set: | SALES |
proc format; value $saletypefmt 'R'='Retail' 'W'='WholeSale'; run;
ods html file="stylePrecedence.html";
title "Style Precedence"; title2 "First Table: no precedence, Orange"; title3 "Second Table: style_precedence=page, Red";
proc tabulate data=sales format=dollar10.;
class product region saletype;
classlev region saletype / style={font_style=italic};
var netsales;
label netsales="Net Sales";
keylabel all="Total";
table product *{style={background=red}}, region*{style={background=yellow}}, saletype*{style={background=orange}};
table product *{style={background=red}}, region*{style={background=yellow}}, saletype*{style={background=orange}} / style_precedence=page;
format saletype $saletypefmt.;
run;
title "Style Precedence"; title2 "First Table: no precedence, Orange"; title3 "Second Table: style_precedence=page, Red";
table product *{style={background=red}}, region*{style={background=yellow}}, saletype*{style={background=orange}};