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
apparent.
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.
Nick
[email protected]
*
* 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/