[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: argument string with embedded comma

From   "Feiveson, Alan H. (JSC-SK311)" <>
To   <>
Subject   st: argument string with embedded comma
Date   Wed, 10 Dec 2008 13:17:01 -0600

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,

args a
noi di "`a'"

. run temp "ddfgdsf"
. run temp "ddfg,dsf"
option dsf not allowed

But on the other hand, interactively:

. local blah "dsfgd,dsgdfg"

. di "`blah'"

Why does this work interactively, but not as an argument in a .do file?

Al Feiveson

*   For searches and help try:

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