MAP Subcommand (SAVE command)

MAP displays a list of the variables in the saved data file and their corresponding names in the active dataset.

  • The only specification is keyword MAP.
  • Multiple MAP subcommands are allowed. Each MAP subcommand maps the results of subcommands that precede it (but not results of subcommands that follow it).

Example

GET FILE='/data/hubempl.sav'.
SAVE OUTFILE='/data/empl88.sav' /RENAME=(AGE=AGE88)(JOBCAT=JOBCAT88)
  /KEEP=LNAME NAME JOBCAT88 ALL /MAP.
  • MAP confirms the new names for AGE and JOBCAT and the order of variables in the empl88.sav file (LNAME, NAME, and JOBCAT88, followed by all remaining variables from the active dataset).