1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
*(Q) My survey allows for 10 possible responses (1 to 10) for a given question 
	but not all responses were selected by person completing the survey. 
*	How can I include the options which have not been selected in my Table
	summarising the answers?.

*(A) Posted by Ray to spss newsgroup on 2002/05/10.


* Preparatory work.
DATA LIST FREE /a.
BEGIN DATA
1 2 3 4 5 6 7 8 9 10.
END DATA.
COMPUTE wgt=.00001.
SAVE OUTFILE='c:\temp\temp.sav'.

* Dummy data for illustration purposes.
DATA LIST LIST /a.
BEGIN DATA
1
2
4
2
4
END DATA.
LIST.

COMPUTE wgt=1.
TABLES
  /FORMAT BLANK MISSING('.')
  /TABLES a
  BY (STATISTICS)
  /STATISTICS
  count( ( F5.0 )).


ADD FILES FILE=* /FILE='c:\temp\temp.sav'.
WEIGHT BY wgt.

* Basic Tables includes all 10 categories.
TABLES
  /FORMAT BLANK MISSING('.')
  /TABLES a
  BY (STATISTICS)
  /STATISTICS
  count( ( F5.0 )).