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.

Example<br />

Example<br />

Example<br />

RENAME VARIABLES (MOHIRED=MOSTART) (YRHIRED=YRSTART).<br />

RENAME VARIABLES 1387<br />

• MOHIRED is renamed to MOSTART and YRHIRED to YRSTART. The parentheses are optional.<br />

RENAME VARIABLES (MOHIRED YRHIRED=MOSTART YRSTART).<br />

• The same name changes are specified as in the previous example. The parentheses are<br />

required, since variable lists are used.<br />

RENAME VARIABLES (A=B) (B=A).<br />

• Variable names are exchanged between two variables: A is renamed to B, and B is renamed<br />

to A.<br />

Mixed Case Variable Names<br />

You can use the RENAME VARIABLES command to change the case of any characters in a<br />

variable name.<br />

Example<br />

RENAME VARIABLES (newvariable = NewVariable).<br />

• For the existing variable name specification, case is ignored. Any combination of upper<br />

and lower case will work.<br />

• For the new variable name, case will be preserved as entered for display purposes.

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

Saved successfully!

Ooh no, something went wrong!