Statalist


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

Re: st: Re: alternative to do with nostop option


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   Re: st: Re: alternative to do with nostop option
Date   Mon, 22 Sep 2008 22:35:37 +0200

Note that you can -capture- and subsequently still assess whether an error has occurred:

******
sysuse auto, clear
capture drop maker
di in red _rc
******



HTH
Martin
_______________________
----- Original Message ----- From: "kokootchke" <[email protected]>
To: <[email protected]>
Sent: Monday, September 22, 2008 10:30 PM
Subject: RE: st: Re: alternative to do with nostop option



Very useful. Thanks a lot, guys.
Adrian


From: [email protected]
To: [email protected]
Subject: st: Re: alternative to do with nostop option
Date: Mon, 22 Sep 2008 22:10:07 +0200

-h capture-

HTH
Martin
_______________________
----- Original Message -----
From: "kokootchke"
To:
Sent: Monday, September 22, 2008 10:02 PM
Subject: st: alternative to do with nostop option



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

_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows
Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/


*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
_________________________________________________________________
See how Windows connects the people, information, and fun that are part of your life.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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