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

st: RE: RE: RE: Turning log files into do files

From   "Nick Cox" <>
To   <>
Subject   st: RE: RE: RE: Turning log files into do files
Date   Mon, 7 Oct 2002 16:55:33 +0100

Nick Winter
> > One pitfall of this approach, however, 
> > as mentioned earlier, is that macros 
> > within command lines will probably 
> > be substituted by empty strings. 
> > In some cases they may get substituted
> > by other inappropriate values. 
> Ouch.  A very good point, and one I did not think about.
> This makes my solution (and any based on -file-) pretty
> much useless for all but the simplest of log files.

No, that's putting it too strongly. 
After all, -log2html- for example suffers from exactly the same 
pitfall, but that doesn't stop it being of some use. 

I suspect that many logs do not in fact use any 
local or global macros within command lines. And a do file 
can always be repaired if this is an issue, as will become 

To put it another way, Nick [Winter's] program can be the 
first stage of a two-stage process and save time over 
several alternatives. 
*   For searches and help try:

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