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   "Steichen, Thomas J." <[email protected]>
To   <[email protected]>
Subject   RE: st: Testing & modifying ado file without reloading data set
Date   Tue, 24 Jan 2006 15:45:13 -0500

What Richard suggests certainly will work... but it may
be more thorough than you need, as it clears many things
including the ado programs active in memory. 

An more precise alternative is to use 

  . prog drop <adofilename>

from your command line in Stata to eliminate only
the ado called <adofilename>. 

Tom

Richard Goldstein writes:
> ado file remain in memory
> 
> use the -discard- command to eliminate them from memory
> 
> Rich
>
 
in response to b. water's message:
> > Dear Listers,
> > 
> > Stata 8.2 Windows XP Pro SP2,
> > 
> > This is my first stab at testing and modifying an ado file. 
> I have the
> > ado file opened and do my modifications on MS Notepad and 
> saved (File -> 
> > Save on Notepad) on c:\ado. I have Stata opened too, with 
> data loaded to 
> > test the ado file. I typed the the name of the ado file to 
> invoke it. It 
> > went well. There is a small snag.
> > 
> > When I made any changes on the Notepad and saved the changes, if I
> > merely retyped the ado file, it executes the ado without 
> reflecting the 
> > changes that I have made (as if no changes has been made). 
> However, if I 
> > -clear-, reload the data set and execute the ado file again 
> (with the 
> > changes), it is now executed to reflect the changes.
> > 
> > Is this supposed to be the way it is or am I missing a command to be
> > included in the ado file? I have used -capture program 
> drop- top of the 
> > line but including this or not, did not seem to make a 
> difference. I 
> > browsed [U] Chp. 21 and [P] Index to see whether there is a 
> guide on 
> > this but could not find any. I tried to search Stata and 
> Google with the 
> > above subject as search terms but again no luck. Help and 
> advice would 
> > be appreciated. Thank you.
> > 
> > Regards,
> > bw
> 
> 
> *
> *   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/
> 

-----------------------------------------
CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s),
contains information that may be confidential, protected by the
attorney-client or other legal privileges, and/or proprietary non-
public information. If you are not an intended recipient of this
message or an authorized assistant to an intended recipient, please
notify the sender by replying to this message and then delete it from
your system. Use, dissemination, distribution, or reproduction of this
message and/or any of its attachments (if any) by unintended recipients
is not authorized and may be unlawful.


*
*   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