SPSS tutorials website header logo SPSS TUTORIALS FULL COURSE BASICS ANOVA REGRESSION FACTOR

Changing Variable Properties 2 – Names

The right way for changing variable names in SPSS is using RENAME VARIABLES. Changing variable names manually in variable view is a bad idea because you can't keep track of what you did. This tutorial shows a better alternative.

Changing Variable Names in SPSS

SPSS Rename Variables Syntax Examples

(The test data used by the syntax below are found here.)

*1. Basic variable renaming.

rename variables name = first_name.
rename variables married= marital_status.

*2. Rename both variables back to their original names (undo previous 2 commands).

rename variables (first_name marital_status = name married).

Tell us what you think!

*Required field. Your comment will show up after approval from a moderator.

THIS TUTORIAL HAS 5 COMMENTS: