Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: AW: compare files, vars only


From   Johannes Geyer <[email protected]>
To   [email protected]
Subject   Re: st: AW: compare files, vars only
Date   Thu, 19 Feb 2009 18:13:17 +0100

Eva wrote:

> the limit (244) only hits you in an expression. As long as you avoid
> the equal sign, you should be fine.
> See this example:

Right, thanks for that hint! I displayed the variable list by -dis 
r(varlist)- and thought that would be the content of the macro...which is 
wrong.

Johannes




> ***************************************
> 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/

*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index