Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: checking if a dataset exists


From   Jason Thompson <jat@northwestern.edu>
To   statalist <statalist@hsphsun2.harvard.edu>
Subject   st: checking if a dataset exists
Date   Thu, 03 Nov 2005 10:35:25 -0600

Could someone give me a pointer on how to conditionally execute Stata code based on the existence of a file or lack thereof? Is there an OS-independent way of doing this? I would like to do something like "if a dataset exists in a particular location, use it. otherwise build it and then use it."


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