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:
    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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.