27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

620 GET<br />

• Name changes take place in one operation. Therefore, variable names can be exchanged<br />

between two variables.<br />

• Variables cannot be renamed to scratch variables.<br />

• Multiple RENAME subcommands are allowed.<br />

• On a subsequent DROP or KEEP subcommand, variables are referred to by their new<br />

names.<br />

Example<br />

GET FILE=EMPL88 /RENAME AGE=AGE88 JOBCAT=JOBCAT88.<br />

• RENAME specifies two name changes for the working data file. AGE is renamed to AGE88<br />

and JOBCAT is renamed to JOBCAT88.<br />

Example<br />

GET FILE=EMPL88 /RENAME (AGE JOBCAT=AGE88 JOBCAT88).<br />

• The name changes are identical to those in the previous example. AGE is renamed to<br />

AGE88 and JOBCAT is renamed to JOBCAT88. The parentheses are required with this<br />

method.<br />

MAP Subcommand<br />

MAP displays a list of the variables in the working data file and their corresponding names<br />

in the SPSS-format data file.<br />

• The only specification is the keyword MAP. There are no additional specifications.<br />

• Multiple MAP subcommands are allowed. Each MAP subcommand maps the results of<br />

subcommands that precede it; results of subcommands that follow it are not mapped.<br />

Example<br />

GET FILE=EMPL88 /RENAME=(AGE=AGE88) (JOBCAT=JOBCAT88)<br />

/KEEP=LNAME NAME JOBCAT88 ALL /MAP.<br />

• MAP is specified to confirm the new names for the variables AGE and JOBCAT and the<br />

order of variables in the working data file (LNAME, NAME, and JOBCAT88, followed by<br />

all remaining variables in the SPSS-format data file).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!