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

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


From   David Kantor <[email protected]>
To   [email protected]
Subject   Re: Cannot edit do file while executed! Re: st: Race conditions inStata do files?
Date   Wed, 14 Jan 2004 09:34:17 -0500

At 04:03 AM 1/14/2004 -0500, Misha Bonch-Osmolovski  wrote:
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.
[...]
Of course.

The situation that Daniel asked about is a bit different in that he has one do-file calling another.

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

He wants to edit proc3.do. The fact that proc1.do and proc2.do are do-files is irrelevant. All that matters is that what comes before proc3.do takes enough time that he might be able to edit it before it gets called. He needs to finish editing proc3.do by that time. If he's not finished by that time, then he would have the same kind of "incovinient moment" that you mentioned.

-- David


David Kantor
Institute for Policy Studies
Johns Hopkins University
[email protected]
410-516-5404

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