Changing PROC TABULATE BOX= Option Formatting

A common technique in PROC TABULATE is to use the BOX= option in the TABLE statement to put a title in the box at the top left corner of the table. The following code shows how the option is used:

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

The resulting table is shown in Figure 19.24. Notice how the box label is centered in the box. The table might look better if the label were aligned with the left side of the table. That way it would match the row headings. To do this, you can apply a STYLE= option ...

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.