Statalist


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

st: RE: A query on reading all files in this current directory.


From   "Martin Weiss" <martin.weiss@uni-tuebingen.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: A query on reading all files in this current directory.
Date   Wed, 27 Aug 2008 10:20:17 +0200

**************
cap ssc inst fs
qui fs *dta
di `r(files)'
**************

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Ashim Kapoor
Sent: Wednesday, August 27, 2008 10:06 AM
To: statalist@hsphsun2.harvard.edu
Subject: st: A query on reading all files in this current directory.

Hello everyone,

I wish to run a loop on ALL data files in the current directory. Is
there a command with which I can gather I can gather the list of all
datafiles in the current directory in a local macro variable?

Thank you all for your time,
Ashim. : )
*
*   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/


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



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index