[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: do-file halting

From   "Ann Miller" <>
To   <>
Subject   Re: st: do-file halting
Date   Mon, 06 Jul 2009 14:03:09 -0400

Thank you! Good advice!

>>> Ulrich Kohler <> 7/6/2009 1:53 PM >>>
Am Montag, den 06.07.2009, 13:25 -0400 schrieb Ann Miller:
> Dear Statalist, 
> I'm using Stata 10 and have run into something I think is odd. When I set up a master do file that has several smaller do-files within it (eg:, the master do will run up to the second-to-last one ( then cease, displaying the following: "end of do-file". After various struggles and consults with experts at my workplace, we've discovered that 1) it doesn't seem to read the final small do-file ( and 2) if I add 2 carriage returns to the end of the master do-file, it'll run the whole thing. Is this a common problem? I'd be interested to know what might be the cause, if anyone else has run into this, or if there's a different solution than my 2-carriage-return fix.

In Stata, commands are not executed unless they are "entered" by a
carriage return. Hence, a different solution is to add just one carriage
return at the end of the master file (instead of two).

"Data Analysis Using Stata" written be Frauke Kreuter and myself
recommends to use  -exit- as the last line of do-files. This helps not
to forget the last carriage return and has some other advantages.


+49 (0)30 25491-361

*   For searches and help try:
*   For searches and help try:

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