----Robert A Yaffee wrote:
> Does anyone know of a Stata do-file or ado-file program that will go
> through your log file, find the syntactical errors, and remove those
> errors along with the commands that generated them, leaving a
> syntactically perfect output?
> Once such garbage is removed, it's easier to check over the output for
> other errors.
Bob:
It is not exactly what you are looking for and if your programs take long
to run than this is not very efficient but something like this may help:
*-----------begin example------------
program valid
capture `0'
if !_rc `0'
end
sysuse auto
set trace on
valid reg bla blub
valid reg price mpg foreign
*-----------end example-------------
HTH,
Maarten
-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands
visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z214
+31 20 5986715
http://home.fsw.vu.nl/m.buis/
-----------------------------------------
*
* 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/