Like, Tony, I find his strategy described below quite useful. I use several
text editors, depending on several things. When I use EmEditor it allows
keeping a list of "snippets" in a panel on the side of the document, where I
created the snippet
dis as result "L\{CurLine}_\{Filename} "
When clicked on while editing a file this inserts the line number and file
name into the do file for the same reasons as Peter has described.
Buzz Burhans, Ph.D.
Dairy-Tech Group
Twin Falls, ID
Cell: 208-320-0829
Fax: 208-735-1289
Email: [email protected]
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Lachenbruch,
Peter
Sent: Thursday, September 03, 2009 10:02 AM
To: [email protected]
Subject: RE: error mesage convention [was: Re: st: Importing data with
infile: Identifying records with problems]
When I am creating a do-file or an ado-file, I always have errors. I have
found that judicious use of display commands (disp "got to line 20") tells
me at least where there isn't an error. This is probably way to
old-fashioned, but it works for me.
Tony
Peter A. Lachenbruch
Department of Public Health
Oregon State University
Corvallis, OR 97330
Phone: 541-737-3832
FAX: 541-737-4001
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/