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

st: Converting log to do files


From   "Nick Winter" <nwinter@policystudies.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Converting log to do files
Date   Wed, 16 Oct 2002 14:25:39 -0400

Hi all,

Following a recent thread on converting existing log files into do
files, I created a program, -log2do2-, which is a new utility to do
this.

This program uses the -file- command, rather than reading the log file
into memory as a set of string variables.  Further, it reads the files
character-by-charater in binary mode.  This means that it is able to
preserve references to local macros in the original syntax.

The program also deals with -foreach- and -forvalues- blocks of code,
which are not preceeded by ". " or "> " in log files.

Available from SSC.

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