1
2
3
4
5
6
7
8
* (Q) I have a categorical variable (from 1 to 3), I need to create a new variable with reversed scale 
 (1 becomes 3, 2 stays the same, 3 becomes 1). How can I automatically define correct value labels for the new variable?

*(A) Posted to SPSSX-L by Jon Peck on 2004/12/10 .
* This is a nice application of AUTORECODE.

GET FILE='c:\\program files\\spss\\employee data.sav'.
AUTORECODE jobcat /INTO reversedJobcat /DESCENDING.