Hi I know this has come up before, but I can't find it on the Stata
FAQ's or with -findit-. If a character string as an argument has a comma
embeded in it, how can I process it correctly? For example in -temp.do-,
below:
// temp.do
args a
noi di "`a'"
. run temp "ddfgdsf"
ddfgdsf
. run temp "ddfg,dsf"
option dsf not allowed
r(198);
But on the other hand, interactively:
. local blah "dsfgd,dsgdfg"
. di "`blah'"
dsfgd,dsgdfg
Why does this work interactively, but not as an argument in a .do file?
Al Feiveson
*
* 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/