Break Your Problem Down Step-By-Step

Most problems can be solved by reading Decoding Error Messages and Incorrect Tables and How to Fix Them. PROC TABULATE code can be confusing to debug because TABLE statements are so complex. If you have a more stubborn problem, then it is helpful to break down your problem step-by-step. The following steps show you how to break a table down into its components, so that you can see what is going wrong.
Simplify the table.
If your table is not simple in design, the first step in debugging is to simplify you table. Sometimes the problem with a table is obvious if you look at the bare bones of the code. For example, the table created by the following code has a problem:
PROC TABULATE DATA=TEMP; CLASS OWNHOME ...

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.