Thanks a lot, Zhiqiang.
If I code
. out `var's using "d:\stata\export\\`var's.asc"
^
it does save the file with correct name in "d:\stata\export\", as I want to
have it.
Greetings,
Daniel
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Zhiqiang Wang
> Sent: Thursday, June 27, 2002 1:29 PM
> To: [email protected]
> Subject: st: Re: local macros & saving in directory
>
>
> I don't think you made a mistake. I guess it's a bug or something. It only
> happens for a slash right before a local macro. Perhaps only
> Stata staff can
> find out the reason since outfile is a built-in command. It will
> save to the
> right directory if you try either
>
> out `var's using "d:\stata\export\add`var's.asc"
> * add something between slash and macro
> or
> out `var's using "d:\stata\export\\`var's.asc"
> * add another slash
>
> Zhiqiang
> Menzies School of Health Research
> Darwin Australia
>
>
> ----- Original Message -----
> From: "Daniel Muller" <[email protected]>
> To: "Statalist" <[email protected]>
> Sent: Thursday, June 27, 2002 2:51 PM
> Subject: st: local macros & saving in directory
>
>
> > I coded:
> >
> > ----
> > version 7
> > local var "somevar"
> >
> > ... code in terms of `var'
> >
> > out `var's using "d:\stata\export\`var's.asc", runtogether replace
> > ----
> >
> > However, the file is saved in dir <d:\stata> under the name
> > <export`var's.asc>, not as I expected in dir <d:\stata\export> as
> > <somevars.asc>.
> >
> > Where is my mistake? Why does Stata strip off the slash before `var'?
> >
> > Many thanks in advance, best wishes,
> > Daniel
> >
> > *
> > * 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/
>
*
* 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/