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

st: mkdir with local

From   [email protected]
To   [email protected]
Subject   st: mkdir with local
Date   Tue, 18 Sep 2007 18:46:07 -0300 (BRT)

Dear All,

I would like to generate a new directory inside Stata and to save data
using a local macro. For example:

local name = "test_directory"
cd C:\
mkdir "`directory ' "
// my do file
save "C:\`name'\current_data.dta"

However, last line does not work. Is it possible to do that?

Thx in advance.


*   For searches and help try:

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