Statalist The Stata Listserver


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

st: a question about setting a local macro


From   Jian Zhang <[email protected]>
To   [email protected]
Subject   st: a question about setting a local macro
Date   Fri, 3 Feb 2006 16:08:16 -0800 (PST)

Dear Stata Users

I have the following question that I couldn't figure out.  Hope that you
can help me.  Thanks.

Due to the lengh width limit of the do file editor, i have to continued
the command in the next line by using mark /*.  But it seems that when I used this
mark to define a local macro, it doesn't work.  For example,

the command is as follows.

local i "prest_ p309_ p310_ p311_ p312_ p313_ p313c_ /*
*/ p314_ p3141_ p3142_ p315_ p316_ p317_ p318_ p3191_"

stata returns with an error message saying invalid syntax.

but if the command is as follows,

local i "prest_ p309_ p310_ p311_ p312_ p313_ p313c_"

it works.

So It seems that defining a local marco does not allow using /* to
continue the command in the next line.  Is this right? If so, is there any way to
get around this?

Thanks.

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