Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: what is my error on this multi-line label define command?


From   "Joseph Coveney" <[email protected]>
To   "Statalist" <[email protected]>
Subject   Re: st: what is my error on this multi-line label define command?
Date   Sat, 6 Sep 2008 12:51:15 +0900

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/



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