Hi Statalist,
I am struggling with a seemly very simple question in Stata, but really cannot figure it out...
Basically, I have a dataset with labeled numeric variables (.dta), and after the data management and cleaning in Stata, I want to output and save it as .txt file (without label). Here is the code I used, the .txt file could be saved, but it contains a lot of weird strings, instead of the all the numeric values I wanted. I wonder what is going wrong with my codes.
Thanks in advance!
Yingyi
I am struggling with a seemly very simple question in Stata, but really cannot figure it out...

Basically, I have a dataset with labeled numeric variables (.dta), and after the data management and cleaning in Stata, I want to output and save it as .txt file (without label). Here is the code I used, the .txt file could be saved, but it contains a lot of weird strings, instead of the all the numeric values I wanted. I wonder what is going wrong with my codes.
Thanks in advance!
Yingyi
Code:
use old_data.dta, nolabel save new_data.txt, replace
Comment