Changing PROC TABULATE Table Cell Style Attributes

In addition to being able to control style attributes for PROC TABULATE column headings, you can also control style attributes for the cells under a particular heading. This example shows how to change the background color for the table cells with the dollar amounts.

You can do this by adding a STYLE= option to the PROC TABULATE statement. The following code changes the background color to a shade of gray (cxDDDDDD). The BACKGROUND= keyword in the PROC TABULATE statement affects the analysis cells, not the heading cells.

ODS HTML BODY='tabback.html' STYLE=sasweb; proc tabulate data=furniture STYLE=[BACKGROUND=cxDDDDDD]; class Type Material; var Price; table Type='Table Type'* Material='Construction', ...

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.