Hi,
I seem to be facing a similar problem. I use Stata/SE 12.1 for Windows.
In my do-file I use 5 .dta files and run the following set of commands on each of them:
use "$data\phase6_endline_cleaned_WIDE_no_pii.dta" , clear
gen varname = ""
gen varlabel = ""
local i = 1
set trace on
foreach v of var * {
replace varname = "`v'" in `i'
replace varlabel = "`: var label `v''" in `i'
local ++i
}
This set of commands run for 3 out of four data files. In one of the two that it doesn't run on, I trace to check which variable the code gets stuck on. I browsed to see what this variable contains. It is a byte type variable and contains data.
These 5 datasets contain 250-380 variables each and no more than 1000 observations in each.
Could you please help with this error?
-Pratyusha
I seem to be facing a similar problem. I use Stata/SE 12.1 for Windows.
In my do-file I use 5 .dta files and run the following set of commands on each of them:
use "$data\phase6_endline_cleaned_WIDE_no_pii.dta" , clear
gen varname = ""
gen varlabel = ""
local i = 1
set trace on
foreach v of var * {
replace varname = "`v'" in `i'
replace varlabel = "`: var label `v''" in `i'
local ++i
}
This set of commands run for 3 out of four data files. In one of the two that it doesn't run on, I trace to check which variable the code gets stuck on. I browsed to see what this variable contains. It is a byte type variable and contains data.
These 5 datasets contain 250-380 variables each and no more than 1000 observations in each.
Could you please help with this error?
-Pratyusha
Comment