AUTORECODE VARIABLES=src_vars INTO dest_vars /DESCENDING /PRINT
The AUTORECODE procedure considers the n values that a variable takes on and maps them onto values 1...n on a new numeric variable.
Subcommand VARIABLES is the only required subcommand and must come first. Specify VARIABLES, an equals sign (‘=’), a list of source variables, INTO, and a list of target variables. There must the same number of source and target variables. The target variables must not already exist.
By default, increasing values of a source variable (for a string, this is based on character code comparisons) are recoded to increasing values of its target variable. To cause increasing values of a source variable to be recoded to decreasing values of its target variable (n down to 1), specify DESCENDING.
PRINT is currently ignored.
AUTORECODE is a procedure. It causes the data to be read.