New functionality: simplified recoding of string variables

Recode string variables faster and easier in

The recode command has been extended with support for recoding variables with alphanumeric values, also known as “string variables”. Until now, this command has been limited to numeric variables, and recoding string variables could only be done using repeated replace-commands.

It is now possible to express alphanumeric recode rules more efficiently and compact via recode. This will typically also reduce execution time for scripts.

The example below demonstrates recoding of a string variable:

recode var1 ('1' '2' '3' = '0') ('4' = '1')

You may also assign user-defined labels to the new values.

Type help recode in’s command line tool for a more detailed explanations and more examples on recoding.