Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

[no subject]



Phil

On 13/04/2012, at 12:18 PM, E Michael Foster wrote:

> Thanks for taking the time to attend to a fairly frivolous point, but at this point, I'm in for a penny, in for a pound, as they say
> 
>> So I think it's time to define chock.ado.
>> 
>> program define choke
>>     di "Mike says to stop!!!!"
>>     qui stoprightnow
>>     end
>> 
>> This doesn't quite work because I don't want anything other than "Mike 
>> says to stop!!!" in the log.
>> 
>> I'd like to suppress the error message:
>>       unrecognized command:  stoprightnow
>>       r(199);
>> yet, if I use -cap- execution proceeds.
>> 
>> Suggestions?
> 
>>>> Couldn't you just have an -exit- command?
> 
> -exit- doesn't quite do it either.  IN some instances, I'm running code in stata while it's open and don't want the program to close
> Any ideas?  
> 
> 
> 
> -------------------------------------------
> Richard Williams, Notre Dame Dept of Sociology
> OFFICE: (574)631-6668, (574)631-6463
> HOME:   (574)289-5227
> EMAIL:  Richard.A.Williams.5@ND.Edu
> WWW:    http://www.nd.edu/~rwilliam
> 
> *
> *   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/


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