Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: odbc load, clear - does it clear labels?


From   [email protected] (Kevin Turner)
To   [email protected]
Subject   st: Re: odbc load, clear - does it clear labels?
Date   Mon, 26 Jul 2004 09:44:48 -0500

Veit Grote ([email protected]) writes:

>I just realised that - odbc load - with the option - clear - seems not to
>clear the labels of the data set in memory. Running the do-file twice is
>producing an error "label already defined". The short copy of the result
>window is below. I am using up-to-date Stata 8.2 Intercooled.
>Veit

As confusing as this initially appears, the behavior is intended. Since the
-odbc load- command does not generate any value labels, it also does not clear
existing value labels. This allows incoming values to be conveniently labeled
with any previously defined labels. This same behavior can also be witnessed
with other commands, such as -infile- and -insheet-. To drop existing value
labels, these commands need to be preceded with a -label drop- or -clear- 
command.

Hope this clarifies the issue,

--Kevin 
[email protected]
*
*   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/



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