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.

1470 SAVE TRANSLATE<br />

Example<br />

SAVE TRANSLATE OUTFILE=’STAFF.SYM’ VERSION=2 /FIELDNAMES<br />

/RENAME AGE=AGE88 JOBCAT=JOBCAT88.<br />

• RENAME renames the variable AGE to AGE88 and JOBCAT to JOBCAT88 before they are<br />

copied to the first row of the spreadsheet.<br />

Example<br />

SAVE TRANSLATE OUTFILE=’STAFF.SYM’ VERSION=2 /FIELDNAMES<br />

/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 resulting file and their corresponding names in the<br />

working 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 but not the results of subcommands that follow it.<br />

Example<br />

GET FILE=HUBEMPL.<br />

SAVE TRANSLATE OUTFILE=’STAFF.SYM’ /VERSION=2 /FIELDNAMES<br />

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

• MAP is specified to confirm that the variable AGE is renamed to AGE88 and JOBCAT is<br />

renamed to JOBCAT88.

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

Saved successfully!

Ooh no, something went wrong!