Examples (ADD VALUE LABELS command)

Adding Value Labels

ADD VALUE LABELS V1 TO V3 1 'Officials & Managers'
                          6 'Service Workers' 
                /V4 'N' 'New Employee'.
  • Labels are assigned to the values 1 and 6 of the variables between and including V1 and V3 in the active dataset.
  • Following the required slash, a label for the value N for the variable V4 is specified. N is a string value and must be enclosed in single or double quotes.
  • If labels already exist for these values, they are changed in the dictionary. If labels do not exist for these values, new labels are added to the dictionary.
  • Existing labels for other values for these variables are not affected.

Specifying a Label on Multiple Lines

ADD VALUE LABELS OFFICE88 1 "EMPLOYEE'S OFFICE ASSIGNMENT PRIOR"
   + " TO 1988".
  • The label for the value 1 for OFFICE88 is specified on two command lines. The plus sign concatenates the two string segments, and a blank is included at the beginning of the second string in order to maintain correct spacing in the label.