Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: continue loop if file not found
From
daniel klein <[email protected]>
To
[email protected]
Subject
Re: st: continue loop if file not found
Date
Fri, 6 May 2011 22:54:10 +0200
I understand that you do not want the do file to terminate, so
-continue- (alone) will not help.
You propably want to use -capture- prefix.
Try to code somehting like:
cap use filename`date'.dta
if _rc continue
See -help capture-
Best
Daniel
*
* 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/