Examples (VARIABLE LABELS command)

Assigning Variable Labels to Multiple Variables

VARIABLE LABELS  YRHIRED 'YEAR OF FIRST HIRING'
  DEPT88 'DEPARTMENT OF EMPLOYMENT IN 1988'
  SALARY88 'YEARLY SALARY IN 1988'
  JOBCAT 'JOB CATEGORIES'.
  • Variable labels are assigned to the variables YRHIRED, DEPT88, SALARY88, and JOBCAT.

Combining Strings to Construct Variable Labels

VARIABLE LABELS  OLDSAL "EMPLOYEE'S GROSS SALARY PRIOR"
   + " TO 1988".
  • The label for OLDSAL is created by combining two strings with the plus sign. The blank between PRIOR and TO must be included in the first or second string to be included in the label.

Forcing Variable Labels to Wrap

VARIABLE LABELS myvar "A Fairly Long Label \n That Always Wraps".
FREQUENCIES myvar.
Figure 1. Using \n to wrap variable labels
Using \n to wrap variable labels