I am using this in SPSS 27. Does this work in other versions?
I thought it was not possible to set missing values for dates or add value labels for dates.
I was able to enter value labels and missing data specifications in the variables view.
Using a range makes it possible to have more labelled kind of missing data.
I was able to do it in syntax.
New file.
data list list /MyDate (adate10).
Begin data.
12/25/2021
7/4/2021
5/5/2000
12/25/2021
7/4/2021
5/5/2000
12/25/2021
7/4/2021
5/5/2000
10/15/1582
10/16/1582
12/25/2021
7/4/2021
5/5/2000
10/15/1582
10/16/1582
10/17/1582
12/25/2021
7/4/2021
5/5/2000
10/15/1582
10/16/1582
10/10/1800
end data.
display dictionary.
missing values MyDate ('10/15/1582' THRU '10/20/1582', '10/10/1800').
Value labels MyDate
'10/15/1582' 'unknown'
'10/16/1582' 'refused to answer'
'10/10/1800' 'forgot to ask'.
display dictionary.
frequencies MyDate.
Art Kendall
Social Research Consultants