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
TABLESsubcommands on a singleCROSSTABScommand. The slash between the subcommands is required; the keywordTABLESis required only in integer mode. - Variables named before the first
BYon a table list are row variables, and variables named after the firstBYon a table list are column variables. - When the table list specifies two dimensions (one
BYkeyword), the first variable beforeBYis crosstabulated with each variable afterBY, then the second variable beforeBYwith each variable afterBY, and so on. - Each subsequent use of the keyword
BYon a table list adds a new dimension to the tables requested. Variables named after the second (or subsequent)BYare 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.