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

Re: st:reading the first X letters of a filename (Stata 8.2)


From   "Dev Vencappa" <[email protected]>
To   <[email protected]>
Subject   Re: st:reading the first X letters of a filename (Stata 8.2)
Date   Tue, 19 Jul 2005 18:15:00 +0100

>>
Michael, Nick
 thanks for your responses. I noticed two peculiar things with my commands. All my files are in a folder called 

C:\World Bank TPD data\

1. For some reason, fs cannot find this directory. But if change the directory name to C:\WorldBankTPDdata\ (i.e. no spaces between the names), then fs lists all the files.

2. When listing the file names, fs converts uppercase into lowercase

Thus when listing the files, it lists ARGbilateral.csv  as argbilateral.csv

I am (still) using Windows 98 and while this may explain the problem with issue 1 ( I have similar problems when using outreg to send formatted output to a particular folder), I suppose issue 2 may be to do with something else. The likely solution would be to convert the first three letters of the filename to uppercase, replace these in the 'r(files)' macro and then execute the commands. I am not sure how to go about doing that though.

Any suggestionmuch appreciated.

Many thanks
Dev



This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


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