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

st: Re: checking if a dataset exists


From   "Michael Blasnik" <michael.blasnik@verizon.net>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: checking if a dataset exists
Date   Thu, 03 Nov 2005 11:47:55 -0500

-help confirm-

Michael Blasnik
michael.blasnik@verizon.net

----- Original Message ----- From: "Jason Thompson" <jat@northwestern.edu>
To: "statalist" <statalist@hsphsun2.harvard.edu>
Sent: Thursday, November 03, 2005 11:35 AM
Subject: st: checking if a dataset exists



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