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

Re: st: RE: log close

From   Roger Newson <>
Subject   Re: st: RE: log close
Date   Tue, 04 Mar 2003 12:22:27 +0000

At 12:04 04/03/03 +0000, Dimitriy V. Masterov wrote:

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 realize this is a trivial problem, but I am rather absent-minded, and
this causes me and my colleagues a lot of frustration.
You might like to use the -dolog- package, downloadable from SSC. (Type -ssc describe dolog- to find out more.)

If you install -dolog- and have a do-file, with no -log using- or -log close- statements, then you can simply type

dolog myprog

and Stata will run, creating a file -myprog.log-.

I hope this helps.


Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605

Opinions expressed are those of the author, not the institution.

* For searches and help try:

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