Introduction

After putting in the time to design a complex table, you do not want to waste your time retyping all of that code to run the same table on different variables or to generate different statistics.
One of the most powerful tools in SAS is the ability to create macros to do repetitive tasks.
If you have a program that produces a series of tables for the month of January, you can add a macro that lets you run the tables again for February (and March, April, and so on).
You can also write a macro that lets you vary the statistics shown in the table. You can produce a whole series of tables showing various statistics for the same group of variables.
Or, if you are ambitious, you can write a generic PROC TABULATE macro that lets you ...

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.