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
* Identifying the 3 types of missing values *.
* Ray.

DATA LIST LIST /a.
BEGIN DATA
1
9
2
.
4
END DATA.
LIST.

MISSING VALUES a (9).

COMPUTE sysmis1=SYSMIS(a).
COMPUTE missing1=MISSING(a).
COMPUTE usermis1=missing1 - sysmis1.
LIST.

*Give the following output:
       A  SYSMIS1 MISSING1 USERMIS1
    1.00      .00      .00      .00
    9.00      .00     1.00     1.00
    2.00      .00      .00      .00
     .       1.00     1.00      .00
    4.00      .00      .00      .00
*.