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" <>
To   <>
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.

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'

sysuse auto
set trace on
valid reg bla blub
valid reg price mpg foreign
*-----------end example-------------


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

*   For searches and help try:

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