1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
* To print var labels and value labels in freq tables.
* (use TABLES instead of FREQ).
* Ray.

DATA LIST FREE /a(F8.0) b(F8.0).
BEGIN DATA
1 2 2 1 3 4 1 2 3 2 1 4 2 1 4 3 1 2 
END DATA.
LIST.
VARIABLE LABELS a 'This is var a' b 'This is var b'.
VALUE LABELS a b 1 'This is 1' 2 'This is 2' 3 'This is 3' 4 'This is 4'.

* Table of Frequencies.
TEMPORARY.
TABLES
  /FORMAT BLANK MISSING('.') /TABLES
  (LABELS)  BY
  ( a + b )
  /STATISTICS COUNT ((F5.0) 'Count' ) .