NAMES Specification (MATRIX-END MATRIX command)

As an alternative to the explicit list on the VARIABLES specification, you can specify a name list with a vector containing string values. The elements of this vector are used as names for the variables.

  • The NAMES specification on SAVE is designed to complement the NAMES specification on the GET statement. Names extracted from IBM® SPSS® Statistics data files can be used in a new data file by specifying the same vector name on both NAMES specifications.
  • If you specify both VARIABLES and NAMES, a warning message is displayed and the VARIABLES specification is used.
  • If you omit both the VARIABLES and NAMES specifications, or if you do not specify names for all columns of the matrix, the MATRIX procedure creates default names. The names have the form COLn, where n is the column number.
  • Variable names are truncated to 8 bytes when they are referenced through a vector in the /NAMES subcommand.