Hello Tjonas,
Look at your code:
country=dadbirthplacecountry;
copies from dadbirthplacecountry to country. Then
data births.father (drop=country);
deletes country from output dataset. It means that if the input dataset birth.father does not contain dadbirthplacecountry then this column will be empty in the output dataset births.father. It looks like you neet the following:
[pre]
data births.father;
set births.father;
rename country=dadbirthplacecountry;
run;
[/pre]
Sincerely,
SPR
... View more