Dear Colleagues,
I am having an issue with recoding a datafile of approximately 4 million observations in batch mode. My issue is that I currently have 1.3 million recode lines in my do-file, which Stata will not accept. The do-file resembles:
-----
use "DF1"
replace var1 = x if var 2 == "Y"
replace var1 = x if var 2 == "Y1"
replace var1 = x if var 2 == "Y2"
etc.
save "DF2"
-----
I was wondering if somebody could suggest a way around this issue. It would be sincerely appreciated.
Many thanks,
Dylan
I am having an issue with recoding a datafile of approximately 4 million observations in batch mode. My issue is that I currently have 1.3 million recode lines in my do-file, which Stata will not accept. The do-file resembles:
-----
use "DF1"
replace var1 = x if var 2 == "Y"
replace var1 = x if var 2 == "Y1"
replace var1 = x if var 2 == "Y2"
etc.
save "DF2"
-----
I was wondering if somebody could suggest a way around this issue. It would be sincerely appreciated.
Many thanks,
Dylan
Comment