Statalist The Stata Listserver


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

RE: st: Testing & modifying ado file without reloading data set


From   "b. water" <barleywater@hotmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   RE: st: Testing & modifying ado file without reloading data set
Date   Wed, 25 Jan 2006 12:22:17 +0000

Thanks to Rich Goldstein, Thomas Steichen and Nick Cox for their inputs.

Rich's suggestion -discard- from the Stata's command line: did something (I don't know what in my context, though I know what -discard- supposed to do from the manual), but the next time (right after -discard-) I invoke my ado, I received the following message:

.progtest var1 var2 var3
unrecognized command: progtest not defined by progtest.ado
r(199);

and thereafter, I was not able to invoke the said ado file until I rebooted my computer. Not even clear or exiting and restarting new Stata session allowed me to invoke the ado file again, each time giving me the same error message; following this, I have not used -discard-.

Thomas' suggestion of -program drop adoname- from the command line worked. I tried this before asking the listers albeit by inserting it on top of the line of the ado routine as -capture program drop adoname- instead of using it on the command line. Since the ado is loaded into the memory, this obviously explained why my attempt did not work.

Which brings me to the next point: is there a temporary command that I can insert top or bottom of the line of my ado routines to say something like -clear this version of ado from the memory- jsut for temporary use in this testing period? I ask this for my own education. I started with having to -clear- and reload my data set to test my ado, this has been shortened by -program drop adoname- courtesy of Thomas's suggestion so anything is a bonus now but would be appreciated.

regards,
bw

_________________________________________________________________
Donít just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/

*
* 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–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index