Dear Statasticians,
although I feel I must be overlooking something big,
despite checking [P] and [U] and the Statalist archives,
I wasn't able to figure out how I can simply get a local
macro A with content `something', but without expanding
`something' (something is a macro, too, that contains,
let's say, foo1 [. loc something foo1]).
I couldn't get it to work using "\".
If I code
. loc A \`something'
I will get, as desired,
. mac list _A
_A: `something'
But if I use A in code, e.g.
. loc s "`A'" + "foo2"
I get
.mac list _s
_s: "foo1" + "foo2"
instead of
_s: `something' + "foo2"
Likewise
. di "`A'"
returns
foo1
instead of
`something'
Is what I want impossible or even unnecessary?
Alex
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/