Make the Simplest Table Possible

To understand PROC TABULATE fully, you have to start very simply. The simplest table possible in PROC TABULATE has to have three things:
  • a PROC TABULATE statement
  • a TABLE statement
  • a CLASS or VAR statement. In this example, we use a VAR statement. Later examples show the CLASS statement.
The following steps take you through the process of creating a simple table:
  1. The first part of the procedure is the PROC TABULATE statement. The minimum syntax for this statement is:
    PROC TABULATE;
    This syntax assumes that the table will be run with the most recently created data set. However, if there is no current data set, you get the error message shown in the following sample log:.
    6 7 PROC TABULATE; ...

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.