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   "Nick Cox" <>
To   <>
Subject   RE: st: Testing & modifying ado file without reloading data set
Date   Tue, 24 Jan 2006 21:43:41 -0000

The point is that the -program- defined by the ado
file remains in memory. That's why the ado
file begins that way. Its purpose is to define
at least one program. 

In addition, a program will be removed from 
memory sooner or later if you stop using it. 
However, that won't happen if you keep on 
invoking it, it being the version in memory
so far as Stata is concerned. 


Richard Goldstein
> ado file remain in memory
> use the -discard- command to eliminate them from memory
b. water

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

*   For searches and help try:

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