Quick Tips

  • If a TABLE statement has two parts that are separated by a comma, then it builds a two-dimensional table using the first part of the TABLE statement as the rows and the second part of the TABLE statement as the columns. diagram of a two dimensional TABLE statement
  • A comma is a table operator that is used to add another dimension to the final table structure.
  • A good rule of thumb is that whatever part of your TABLE statement is closest to the semi-colon is always the column dimension.
  • If a TABLE statement has no commas, then it is assumed that the variables and statistics are to be created as columns.
  • You cannot have a cross–tabulation of two analysis variables. ...

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.