Tiago-
> local name = "test_directory"
> cd C:\
> mkdir "`name' "
> // my do file
> save "C:\`name'\current_data.dta"
>
> However, last line does not work. Is it possible to do that?
When you say the last line does not work, do you mean that the earlier
lines do work? Was the directory created correctly?
I've tried what seems to be the equivalent of the above, but I'm on a
Mac, so it's slightly different. What I have works.
local name = "test_directory"
cd "~"
display "name=`name'"
mkdir "`name'"
save "`name'/current_data.dta"
------------------------------
Timothy O'Neill Dang / Cretog8
623-587-0532
One monkey don't stop no show.
*
* 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/