Statalist


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

st: RE: Re: invalid file specification


From   "Hendri Adriaens" <Hendri@uvt.nl>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Re: invalid file specification
Date   Sun, 8 Jul 2007 15:09:37 +0200

Hi Kit, 

> In this case a useful technique (which is easily disabled when you  
> get tired of seeing it) is just to put a line
> 
> display "Now reading `bestand'"
>
> just before the insheet, which would make it obvious which 
> file it is  
> processing (if any error conditions occur within that file, for  
> instance) but would also show you that in fact the local had 
> not been  
> given a value.

Ok, that is a way to see what is happening.

> It is true that Stata does not make it easy to determine which line  
> is giving you grief in a loop context, but as Austin suggests good  
> old-fashioned debugging techniques work well. Putting output lines  
> into the do-file and just commenting them out when you no 
> longer need  
> them is one of those techniques.

Indeed, not easy at all. But your help will make it a bit easier. Thanks a
lot.

Best regards,
-Hendri.


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