Several categorical variables in the data file demo.sav are, in fact, derived from scale variables in that data file. For example, the variable inccat is simply income grouped into four categories -- and here's how it was done...

From the menus in the Data Editor window choose:

Transform
Recode
Into Different Variables

Select Household income in thousands (income) for the Numeric Variable --> Output Variable list.

Enter inccat2 for the output variable name.

Enter Income category for the output variable label.

Click Change.

Click Old and New Values.

In the Old Value group, click the second Range button and enter 24.999 in the text field after Lowest through.

In the New Value group, click Value and enter 1.

Click Add.

Click the first Range button.

Enter 25 in the first text field and 49.999 in the second text field.

Click Value and enter 2.

Click Add.

Click the first Range button.

Enter 50 in the first text field and 74.999 in the second text field.

Click Value and enter 3.

Click Add.

Click the third Range button.

Enter 75 in the text field before through highest.

Click Value and enter 4.

Click Add.

Click Continue, and then click OK in the main dialog box.

The new variable is displayed in the Data Editor. Since the variable is added to the end of the file, it is displayed in the far right column in Data view and in the last row in Variable view.

At this point, you might want to add value labels that describe what each of the four categorical values represents. Defining value labels is described in Adding Value Labels for Numeric Variables