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

Re: Re: st: proceeding beyond roctab 2000 error msg - correction


From   "Michael Blasnik" <michael.blasnik@verizon.net>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: Re: st: proceeding beyond roctab 2000 error msg - correction
Date   Tue, 1 Jun 2004 17:49:33 -0400

I may be misunderstanding your first sentence, but _rc is set by every
command in Stata, whether you use -capture- or not.  It's just
that -capture- (quite appropriately named) captures the error code so that
Stata does not stop processing the current do/ado file.

Michael Blasnik
michael.blasnik@verizon.net

----- Original Message ----- 
From: "David Kantor" <dkantor@jhu.edu>
To: <statalist@hsphsun2.harvard.edu>
Sent: Tuesday, June 01, 2004 3:32 PM
Subject: RE: Re: st: proceeding beyond roctab 2000 error msg - correction


> I might add that it is important to know that _rc is set only for a
command
> that occurs under
> -capture-.
>
> If you want to see the output of the command AND subsequently test _rc,
> then do...
>   capture noisily ...
>
> -- David
>


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index