Dear all,
I'm trying to save a string that may contain a Stata reserved
characters (eg $) into a text file. The problem is Stata keep
intrepreting the string so the string "xx$Test" is interpreted into
"xx".
I tried coding
file write `rfhandle' `"`macval(rcmd)'"' _n
but this still does not work. I could not find a Help description of
macval. Is it still supported? Why the above line does not work?
rcmd in the above line is passed as an option to this ado file so
there is an Rmcd(string) in the syntax statement. My question when
does Stata interpret the string stored in rcmd? if this happen when
the ado is called then it might be too late to use the macval in the
ado body. If this is the case, is there away of passing the rcmd
option without interpretation? string asis does not seem to work. ?
passthrough?
Thanks for your help,
salah mahmud
*
* 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/