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

Cannot edit do file while executed! Re: st: Race conditions in Statado files?


From   Misha Bonch-O <[email protected]>
To   [email protected]
Subject   Cannot edit do file while executed! Re: st: Race conditions in Statado files?
Date   Wed, 14 Jan 2004 04:03:29 -0500

I have experienced interesting problem that is somewhat related to your question:

If I edit and save a do file WHILE it is being executed, that often causes Stata to stop, usually with syntax error. I made a conclusion that Stata does not load file in memory, but reads it line by line. That caused me several incovinient moments, untill I learned not to do that.
Misha Bonch-Osmolovski

Date: Tue, 13 Jan 2004 16:36:22 -0500
From: David Kantor <[email protected]>
Subject: Re: st: Race conditions in Stata do files?

At 11:32 AM 1/13/2004 -0800, Daniel Sabath wrote:


I have a question that is a little odd and geeky.

If I have a master do file which calls a bunch of other do files, at what
point are those subsidiary do files read into memory?

Assume
Master.do -> proc1.do
          -> proc2.do
          -> proc3.do

Assume that proc2.do takes some time to process. Are proc1-3 read into
memory at the time that master.do is run or are they loaded as they are
called in order. In other words is it possible to start master.do, edit
proc3.do before it is called and have the changes take effect when it is
called?

Thanks

Dan

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