Understanding the Basics of the TABULATE Procedure

Required Statements for the TABULATE Procedure

The TABULATE procedure requires three statements, usually in the following order:
  1. PROC TABULATE statement
  2. CLASS statements or VAR statements or both
  3. TABLE statements
Note that there can be multiple CLASS statements, VAR statements, and TABLE statements.

Begin with the PROC TABULATE Statement

The TABULATE procedure begins with a PROC TABULATE statement. Many options are available with the PROC TABULATE statement. However, most of the examples in this section use only two options, the DATA= option and the FORMAT= option. The PROC TABULATE statement that follows is used for all of the examples in this section:
proc tabulate data=year_sales ...

Get Step-by-Step Programming with Base SAS 9.4 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.