Re: SAS datasets in NFHS data [message #4067 is a reply to message #1093] |
Wed, 25 March 2015 14:40 |
Bridgette-DHS
Messages: 3199 Registered: February 2013
|
Senior Member |
|
|
Dear Data User,
Following is an example for converting .SD2 to version 9. All you need to do is modify the path to yours, and change the file names where necesssary. Be sure to create two libnames, one for the version 6 file, and one for the version 9 file. After running it, run the a quick one variable frequency to check the data. Your version 9 data is called "newdata" in this example.
I hope this helps - Bridgette-DHS
libname dhs6 v6 'C:\Countries\India6\';
libname dhs9 'c:\countries\India9\';
data 'c:\countries\dr9\newdata' ;
set dhs6.iakr52fl;
run;
proc freq data=dhs9.newdata;
tables v015:;
run;
|
|
|