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

Re: st: log close


From   Richard J Stoll <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   Re: st: log close
Date   Mon, 3 Mar 2003 19:41:24 -0600 (CST)

On Mon, 3 Mar 2003, Dimitriy V. Masterov wrote:

> Hello,
>
> I was wondering if there is a way to automatically close the log file when
> there is a dofile error of some sort. I always forget to type -log close-
> and then I get an error when I run my corrected dofile when it gets to
> the -log using...- section.
>
I think that this will accomplish what you want.

I use the following log command in my .do files:

log using xxx.log, replace

When I run the .do file after fixing my mistake, the replace option
replaces the old  version of the .log file with the new version.
------------------------------------------------------------------------
Richard J. Stoll, Professor of Political Science and
Associate Dean of Social Sciences * Rice University
Dept. Political Science MS 24 * P.O. Box 1892 * Houston TX 77251-1892
E-mail: [email protected] * Tel: 713-348-3362 * FAX: 713-348-5273


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