Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: error message "label xxx already defined"


From   Richard Goldstein <richgold@ix.netcom.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: error message "label xxx already defined"
Date   Tue, 10 Jul 2012 13:11:09 -0400

you are mis-reading the message from Stata; it is telling you that a
label, not a variable, is already defined; in other words, each of the
two files has a label with same name; just check that they are defined
to be the same in the two files; if they are the same, then you can
ignore the warning, not error, message

Rich

On 7/10/12 1:03 PM, xueliansharon wrote:
> Dear all,
> 
> I try to merge two files and always get an error message as "label xxx
> already defined". What's more strange is that when I check the master and
> using data file, I don't have the variable "xxx". Does anybody know the
> reason for this?
> 
> For your information, here are the commands and results:
> 
> command:
> 
> use "D:\work\aa.dta", clear
> sort personid
> merge 1:1 personid using "D:\work\bb.dta"
> 
> result:
> (label xxx already defined)
> 
> command:
> tab xxx
> 
> result:
> variable xxx not found
> 
> Thank you very much for your time!
> 
> Best,
> Xuelian
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index