VARIABLES Specification (MATRIX-END MATRIX command)

VARIABLES specifies a list of variables to be read from the IBM® SPSS® Statistics data file.

  • The keyword TO can be used to reference consecutive variables on the data file.
  • The variable list can consist of the keyword ALL to get all the variables in the data file. ALL is the default if the VARIABLES specification is omitted.
  • Long variable names (up to 64 bytes) are supported when specified on the /VARIABLES subcommand (either explicitly or when using the TO or ALL keywords).
  • All variables read from the data file should be numeric. If a string variable is specified, a warning message is issued and the string variable is skipped.

Example

GET M /VARIABLES = AGE, RESIDE, INCOME TO HEALTH. 
  • The variables AGE, RESIDE, and INCOME TO HEALTH from the active dataset will form the columns of the matrix M.