Put a Title in Each Table

Overview

You have probably noticed that most PROC TABULATE tables have a big empty box in the table grid. The box sits above the row headers and to the left of the column headers. It would be nice if we did not have to waste this space. As it happens, you can take advantage of that space. You can use that space to hold some descriptive text or the value of some variable. But the real advantage of this space is that for three-dimensional tables, you can use it to hold the value of the page variable(s).

Add a Text String

First, let’s look at a simpler two-dimensional example. We are going to add a new feature to our TABLE statement. PROC TABULATE supports a number of optional features for the TABLE statement. To specify ...

Get PROC TABULATE by Example, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.