New Variable dialog box

The New Variable dialog box is an advanced feature that you can use to create a new variable.

To open the New Variable dialog box, choose

from the menu, or press Ctrl+M.

Fields on the New Variable Dialog Box

The Edit Variable menu. See the topic The IBM SPSS Data Collection Survey Reporter Menus for more information.

The Edit Variable toolbar. See the topic The IBM SPSS Data Collection Survey Reporter Toolbar Buttons for more information.

Name. IBM® SPSS® Data Collection Survey Reporter generates a name for the new variable. You can change this to a more meaningful name. Ensure that the variable name conforms to the Survey Reporter  Naming Conventions.

Description. Enter a description for the variable as you want it to appear on your tables.

Data type. Defines the new variable's type. When you are creating a copy of a variable, you must select the same type as the variable you are copying. The options are:

• Boolean

• Categorical

• Date

• Numeric (long)

• Numeric (double)

• Text

See the topic Variable type overview for more information.

Based On. Use this field to type in the syntax that defines the variable; for example, Favorite + spontaneous + prompted. This is useful if you are familiar with the syntax. Alternatively, define the variable using the dialog box available from the Select button.

Select. Choose this button to display the Create New Variable Based On dialog box, where you can enter your own formula for the variable.

Category list. The main section of the dialog box displays a list of the categories in the variable. This list also includes other items that are part of the variable, for example, means, totals, or other items that you create.

Properties pane. The Properties pane is an advanced feature that you can use to view and edit the properties for categories and other items in a variable. See the topic Edit Variable dialog box: Properties pane for more information.

Script Pane. The Script pane is an advanced feature that you can use to display and edit the syntax for a variable. See the topic Edit Variable dialog box: Script pane for more information.

Note: You can also create a new variable by copying or merging existing variables, or saving changes to an existing variable as a new variable. See the topic Creating new variables for more information.