Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: RE: Problem with -recode- and temporary variables
From 
 
"Cohen, Elan" <[email protected]> 
To 
 
"'[email protected]'" <[email protected]> 
Subject 
 
st: RE: Problem with -recode- and temporary variables 
Date 
 
Thu, 11 Nov 2010 14:43:05 -0500 
Alan,
Go into your temporary directory (-di c(tmpdir)-) and delete any files starting with "ST".
This problem usually occurs when Stata does not shut down properly.
HTH,
- Elan
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of 
> Alan Neustadtl
> Sent: Thursday, November 11, 2010 14:26
> To: [email protected]
> Subject: st: Problem with -recode- and temporary variables
> 
> I am trying to recode a variable and getting an error that a temporary
> variable is already defined.  I have rebooted and restarted Stata but
> still get the same error message.
> 
> If anyone can shed some light I would appreciate it.  The 
> code I am running is:
> 
> . recode region (1/4 9=0 "Blue")(4/8=1 "Red"), gen(redblue)
> __000000 already defined
> r(110);
> 
> Sincerely,
> Alan
> *
> *   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/