RECODE lets you change variable values.
Syntax for variable data:
RECODE variable (old value 1 = new value1, old value 2 = new value 2,...)
Syntax for ASCII data:
RECODE record/column:width (old value 1 = new value1, old value 2 = new value 2,...)
Abbreviation: REC
Usage:
You can change variable values or change ASCII string characters to numeric values. Any number of RECODES, separated by commas, can be defined within the parentheses.
Important information:
Related topics: