Changing PROC TABULATE Row and Column Heading Style Attributes

Applying style attributes to PROC TABULATE output is similar to applying them in PROC REPORT. All you have to do is add STYLE= options to whichever part of the output you want to change.

There are a number of ways you can use STYLE= in PROC TABULATE. To keep things simple, we look at just one technique: adding STYLE= options to the CLASS and VAR statements. We start with a table similar to the previous examples.

ODS HTML BODY='tabstock.html' STYLE=sasweb;
proc tabulate data=furniture;
  class Type Material;
  var Price;
  table Type='Table Type'*
        Material='Construction',
        Price='Average Price'*Mean=" "*f=dollar8.;
run;
ODS HTML CLOSE;

This code produces the output shown in Figure 19.22 ...

Get Output Delivery System: The Basics and Beyond 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.