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" <[email protected]>
To   <[email protected]>
Subject   st: Re: checking if a dataset exists
Date   Thu, 03 Nov 2005 11:47:55 -0500

-help confirm-

Michael Blasnik
[email protected]

----- Original Message ----- From: "Jason Thompson" <[email protected]>
To: "statalist" <[email protected]>
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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index