Statscraft 0.7.0, release v0.7.0
RECODE
Map values of variables to new values.
Syntax
RECODE varlist (inputs = output) [(inputs = output) ...] [INTO newvars] [/ varlist ...].
inputs: values, low THRU high (with LOWEST or HIGHEST), MISSING, SYSMIS, ELSE.
output: a value, SYSMIS or COPY.
The first matching (inputs = output) wins. A value or range also matches user-missing values.
Without a match a variable keeps its value, and so does an existing INTO target; a new target becomes system-missing.
A string target of INTO must exist already. A quoted value longer than its variable is an error.
Example
RECODE age (LOWEST THRU 29 = 1) (30 THRU 59 = 2) (60 THRU HIGHEST = 3) INTO age_group.
statscraft help RECODE prints the same text in the terminal. All commands