Printing Record Details

As we saw in the previous examples, it is possible to trick PROC TABULATE into doing almost anything. But sometimes it is better to use tools for their strengths. PROC TABULATE is good at summarizing and displaying data. It’s not good at displaying individual records.
The following three examples show how to produce reports that display individual records. The same output is produced using three different tools: PROC TABULATE, PROC PRINT, and PROC REPORT.
This PROC TABULATE code is very contrived. PROC TABULATE was not designed to print individual records. To get a listing of individual records, the first three variables in the report are set up as class variables and become row headings. This code is not pretty, but ...

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.