Hi
I am trying to change the variable "doa" to numeric which is understandle to Sata, the below command did not work. Please advice.

gen edate = date(doa, "md20y")
type mismatch




input int doa
.
.
20970
.
.
.
20610
.
.
.
.
.
21174
.
.
21165
18860
.
.
.
.
.
.
17195
.
.
.
.
.
.
17552
.
.
.
.
.
.
.
20810
.
.
.
.
.
.
.
.
.
.
.
20450
.
.
.
.
20218
.
.
.
.
.
.
.
.
.
17585
20426
.
.
.
.
.
.
.
.
.
.
20531
.
.
.
.
.
20598
.
.
.
.
.
.
.
.
.
21182
21209
.
.
.
19979
.
end
format %dM_d,_CY doa
[/CODE]