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

Re: st: RE: log close


From   Roger Newson <roger.newson@kcl.ac.uk>
To   statalist@hsphsun2.harvard.edu
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:
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 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 -myprog.do-, with no -log using- or -log close- statements, then you can simply type

dolog myprog

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

I hope this helps.

Roger


--
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
Email: roger.newson@kcl.ac.uk

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

*
* 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