Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Pgm 2 remove grammatical errors in log


From   "Maarten Buis" <M.Buis@fsw.vu.nl>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Pgm 2 remove grammatical errors in log
Date   Wed, 10 May 2006 23:05:39 +0200

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



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