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 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.