Statalist The Stata Listserver


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

Re: st: macro with a dot


From   "Austin Nichols" <austinnichols@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: macro with a dot
Date   Sat, 4 Mar 2006 17:07:28 -0500

Try
  local  dir F:\0_stat.data\0_homenet.data\0_freshmen\transition\
 di " `dir' "
 di  `dir'
to see where you have gone wrong.

On 3/4/06, Robert Kraut <robert.kraut@cmu.edu> wrote:
> I am trying to create a macro to refer to the directory where data and
> files are stored, so I can move do files easily between computers. I
> define the dir macro as:
>     local  dir F:\0_stat.data\0_homenet.data\0_freshmen\transition\
> But when I try to refer to dir's values, I get an error, as if the dir
> value is broken at the dot included in a directory names:
>
>      dis `dir'
>      data\0_freshmen\transition\ invalid name

*
*   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–2020 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index