Recode into Same Variables

The Recode into Same Variables dialog box allows you to reassign the values of existing variables or collapse ranges of existing values into new values. For example, you could collapse salaries into salary range categories.

You can recode numeric and string variables. If you select multiple variables, they must all be the same type. You cannot recode numeric and string variables together.

To Recode Values of a Variable

  1. From the menus choose:

    Transform > Recode into Same Variables...

  2. Select the variables you want to recode. If you select multiple variables, they must be the same type (numeric or string).
  3. Click Old and New Values and specify how to recode values.

Optionally, you can define a subset of cases to recode.

Specifying Values to Recode

  1. From the menus choose:

    Transform > Recode into Same Variables...

  2. Select the variables you want to recode. If you select multiple variables, they must be of the same type (numeric or string).
  3. Click Old and New Values.
  4. Specify an old value and a new value.
  5. Click Add to place the specification into the Old->New list.

The new value must be of the same type (numeric or string) as the existing variable. For string variables, it must be of the same length as the existing variable.