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" <[email protected]>
To   <[email protected]>
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: [email protected]
[mailto:[email protected]] On Behalf Of Ashim Kapoor
Sent: Wednesday, August 27, 2008 10:06 AM
To: [email protected]
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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index