I am trying to export the variable names and variable labels from a Stata file to a csv or Excel file. I did a search on the question and found this. When I try to use this the Export command I get a 198 error. I am using Stata 12. The Stata file is here. My code follows:
I also tried a variant:
Any help is appreciated!
This question has been cross-posted to Stackoverflow here
Code:
use "\\dfs\wiwi\home\Perdue\Desktop\VAUD_73to79_varlist.dta", clear
Code:
export excel using "\\dfs\wiwi\home\Perdue\Desktop\var_labels.xls", firstrow(varlabels) replace
Code:
too many or no variables specified r(198)
Code:
. export excel commune year id var73_10 year var73_11 var73_12 var73_13 var73_14 var73_15 var73_16 using "\\dfs\wiwi\home\Perdue\Desktop\var_labels.xls", firstrow(varlabels) replace
Code:
too many or no observations specified r(198);
This question has been cross-posted to Stackoverflow here
Comment