Previous Page | Next Page

The TABULATE Procedure

Example 15: Style Precedence


Procedure features:

PROC TABULATE statement options:

FORMAT=

STYLE= option in

CLASSLEV statement

TABLE statement

TABLE statement

crossing (*) operator

STYLE_PRECEDENCE= option

Other features:

ODS HTML statement

FORMAT statement

Data set: SALES

This example


Program

 Note about code
proc format;
      value $saletypefmt 'R'='Retail'
                        'W'='WholeSale';
run;
 Note about code
ods html file="stylePrecedence.html";
 Note about code
title "Style Precedence";
title2 "First Table: no precedence, Orange ";
title3 "Second Table: style_precedence=page, Yellow";
 Note about code
proc tabulate data=sales format=dollar10.;
 Note about code
class product region saletype;
   
 Note about code
classlev region saletype / style={font_style=italic};
   
 Note about code
var netsales;
 Note about code
label netsales="Net Sales";
   
 Note about code
keylabel all="Total";
   
 Note about code
table product *{style={background=red}},
region*{style={background=yellow}},
saletype*{style={background=orange}};
 Note about code
table product *{style={background=red}},
region*{style={background=yellow}},
saletype*{style={background=orange}} / style_precedence=page;
 Note about code
format saletype $saletypefmt.;
   
 Note about code
run;
ods html close;
   

HTML Output

[untitled graphic]

Previous Page | Next Page | Top of Page