There is nothing wrong with the code you have typed - the error must be in the "do something" bit...
In the "do something", the local macro `x' will take the value "code" the first time through and "age" the second time through. Is this what you wanted?
David
-----Original Message-----
From: Loncar, Dejan [mailto:[email protected]]
Sent: 11 April 2005 15:49
To: [email protected]
Subject: RE: st: re: Stata 9
Dear all
I have the situation below (c and age are numeric variables c =
100....200 age = 1...7)
local c = "code age"
foreach x in `c' {
do something
}
It seems it doesn't work as Stata doesn't recognized code as variable
Any suggestion or direction in thinking
Thank you in advance
Dejan
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Richard
Williams
Sent: 11 April 2005 15:10
To: [email protected]
Subject: Re: st: re: Stata 9
At 08:48 AM 4/11/2005 -0400, Kit Baum wrote:
>Jose asked
>2. When the updating of Stata 8 will be descontinued?
>
>I would expect that on the date you could actually order and receive a
>copy of Stata 9 (following the ship date later this month) that Stata
8.2
>would be 'frozen'. From messages on the list, it is evident that there
are
>a lot of Stata 8.0 users out there who haven't figured out how to bring
>their Stata up to date, and they will be able to do that update step
(to
>the last available Stata 8.2 executable and ados) for the foreseeable
future.
I imagine we've seen the last of any new features for Stata 8.2.
Hopefully
bug fixes will continue for a while, although I suppose we can't count
on
that. I've reported a couple of bugs recently and was told they were
fixed, but now I am wondering if they were fixed for version 8 or 9 or
both.
*
* 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/
*
* 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/
*
* 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/