I don't think it's good strategy to put all the onus on Stata
of catching errors.
In this case a Statalist answer to one of your recent questions
can be used to identify a solution.
foreach v of varlist _all {
tab `v'
histogram `v', ...
quantile v'. ...
}
could be done better like this
ds, has(type numeric)
foreach v of var `r(varlist)' {
...
}
Also, don't do
local filename = "..."
do
local filename "..."
This was aired on Statalist very recently
Nick
[email protected]
Maoyong Fan
> The following is the error message before it stops:
>
> varlist: m11_q02: string variable not allowed
> r(109); t=23.39 10:56:34
>
>
> But the program is supposed to continue when coming across
> such kind of error.
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/