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

Re: st: log close

From   Richard J Stoll <>
To   "''" <>
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: * Tel: 713-348-3362 * FAX: 713-348-5273

*   For searches and help try:

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