Dear Statalisters,
I'm trying to export my datasets to csv but the ID variable (18 digits) kept changing to e.g. 1E+6. In the original stata file, this variable is a string variable. To be sure, I've formatted it using the command:
format person_id %20s
then export using the command:
export delimited using "file.csv", datafmt replace
But in the csv file the ID variable still appear as 1E+6. Can you please advise how I can get around this problem?
Many thanks,
Hai
I'm trying to export my datasets to csv but the ID variable (18 digits) kept changing to e.g. 1E+6. In the original stata file, this variable is a string variable. To be sure, I've formatted it using the command:
format person_id %20s
then export using the command:
export delimited using "file.csv", datafmt replace
But in the csv file the ID variable still appear as 1E+6. Can you please advise how I can get around this problem?
Many thanks,
Hai

Comment