Stephen Cox wrote:
Folks - I run the -label define- command as shown below, from a do file. I
get the following error.
. run "C:\DOCUME~1\STEPHE~1\LOCALS~1\Temp\STD02000000.tmp"
label already defined
(error occurred while loading Label.ado)
r(110);
I then run -label list- but nothing come up for injury.
If I run
. label drop injury
I am then told the value label is not found.
What is the error I am making in my original -label define- command, as
shown below?
Label define injury 81 "nothin" ///
[snip]
--------------------------------------------------------------------------------
After pasting the code into the Do-file Editor and running it as a do-file
(not as an ado called by your do-file, as your error message indicates), it
runs okay for me once the L at the beggining is converted to lower case.
You might try the following:
1. add the following as the first line of code in the DO-file
capture label drop injury
2. put an -exit- at the bottom of the DO-file
For further diagnosis, -do- the do file instead of -run-ning it. In
addition, you can -set trace on- for further detail about just where the
r(100) is occurring.
Joseph Coveney
*
* 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/