|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: AW: compare files, vars only
2009/2/19 Johannes Geyer <[email protected]>:
> [email protected] schrieb am 19/02/2009 17:39:52:
>
>
> But it does save the list of variables in a local macro, if you choose the
> option [varlist] - or am I missing a point? The problem is - as Martin
> suggested - that this local macro is limited to a low number of characters
> (244) which might not be enough in many occasions.
>
Johannes,
the limit (244) only hits you in an expression. As long as you avoid
the equal sign, you should be fine.
See this example:
***************************************
clear
forvalues x=1/250 {
gen var`x' = .
}
save test
clear
qui des using test, varlist
loc first `r(varlist)'
local second = r(varlist)
local n : length local first
local m : length local second
di "No equal sign: `n' With equal sign: `m'"
*****************************************
Eva
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/