Compute Variable: Type and Label
By default, new computed variables are numeric. To compute a new string variable, you must specify the data type and width.
Label. Optional, descriptive variable label up to 255 bytes long. You can enter a label or use the first 110 characters of the compute expression as the label.
Type. Computed variables can be numeric or string (alphanumeric). String variables cannot be used in calculations.
Specifying Type and Label for Computed Variables
- From
the menus choose:
- In the Compute dialog box, select Type & Label.
- Select the data type. This is required for new string variables.