TABLES subcommand (CROSSTABS command)

TABLES specifies the table lists and is required in both integer mode and general mode. The following rules apply to both modes:

  • You can specify multiple TABLES subcommands on a single CROSSTABS command. The slash between the subcommands is required; the keyword TABLES is required only in integer mode.
  • Variables named before the first BY on a table list are row variables, and variables named after the first BY on a table list are column variables.
  • When the table list specifies two dimensions (one BY keyword), the first variable before BY is crosstabulated with each variable after BY, then the second variable before BY with each variable after BY, and so on.
  • Each subsequent use of the keyword BY on a table list adds a new dimension to the tables requested. Variables named after the second (or subsequent) BY are control variables.
  • When the table list specifies more than two dimensions, a two-way subtable is produced for each combination of values of control variables. The value of the last specified control variable changes the most slowly in determining the order in which tables are displayed.
  • You can name more than one variable in each dimension.