VARIABLES subcommand (REPORT command)

The required VARIABLES subcommand names the variables to be listed and summarized in the report. You can also use VARIABLES to control column titles, column widths, and the contents of report columns.

  • The minimum specification on VARIABLES is a list of report variables. The number of variables that can be specified is limited by the system page width.
  • Each report variable defines a report column. The value of the variable or an aggregate statistic calculated for the variable is displayed in that variable’s report column.
  • Variables are assigned to columns in the order in which they are named on VARIABLES.
  • Variables named on BREAK can also be named on VARIABLES.
  • When FORMAT=LIST, variables can be stacked in a single column by linking them with plus signs (+) on the VARIABLES subcommand. If no column heading is specified, REPORT uses the default heading from the first variable on the list. Only values from the first variable in the column are used to calculate summaries.
  • Optional specifications apply only to the immediately preceding variable or list of variables implied by the TO keyword. Options can be specified in any order.
  • All optional specifications except column headings must be enclosed in parentheses; column headings must be enclosed in quotes.