[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: alternative to do with nostop option

From   Richard Goldstein <[email protected]>
To   [email protected]
Subject   Re: st: alternative to do with nostop option
Date   Mon, 22 Sep 2008 16:08:26 -0400

look up the -capture- command


kokootchke wrote:
Hello, guys. I don't have this problem right now but have always wanted to ask this. Is there a way to tell Stata to continue running a do file even if *SOME* of the commands would give an "error"?
I know that in general I could use -do myfile, nostop- and then Stata won't stop at all if it finds an error. But I don't like this because I'd actually like it to stop if there's an actual error... but if I say something like -drop x- and x doesn't exist, I don't really think of it as an error, so I'd like it to keep going ONLY IN THIS CASE.

Is there something that would make this happen? Or am I asking for too much here?

Thanks a lot.
*   For searches and help try:

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