Statalist


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

Re: st: file management in Stata


From   "Gabi Huiber" <[email protected]>
To   [email protected]
Subject   Re: st: file management in Stata
Date   Thu, 31 Jan 2008 11:35:05 -0500

Didn't know about it, just installed it, and it is exactly what I need.

Thank you Joseph and Nick,
Gabi

On Jan 31, 2008 11:26 AM, Joseph Coveney <[email protected]> wrote:
> Gabi Huiber wrote:
>
> Is there a way to save somewhere the file names found with Stata's dir
> command?
>
> I have this problem where I need to fish out a list of weekly files
> from a directory, and do things to them one by one. They are named
> fileYYYYMMDD.txt but they don't necessarily come on the same day of
> the week, and some weeks are skipped.
>
> It would be good if I could produce a list of YYYYMMDD's and take it
> from there, and I want Stata to just read the file names and remember
> them -- whether as a macro or a list (I have no other name for a
> vector with non-numeric elements).
>
> Has anybody done this in Stata before?
>
> --------------------------------------------------------------------------------
>
> Are you aware of Nick Cox's -fs-?  It would seem to do what you describe.
>
> -findit fs- turns it up, along with a lot of other things, so scan down the
> results, or type
>
> -net describe fs, from(http://fmwww.bc.edu/RePEc/bocode/f)- .
>
> Joseph Coveney
>
>
>
> *
> *   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/
>
*
*   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