Thursday, March 16, 2006

st: Re: Writing out Names with special signs or words

The macval() function may help in stopping Stata from trying to expand the problem characters as macros. See -help macro- (I don't see anything under help macval())

Michael Blasnik michael.blasnik@verizon.net

----- Original Message ----- "Akihito Tokuhara" <akitoku4@hotmail.com> wrote > > I have some trouble trying to write out the names into a separate text > file, > not writing in log file. I use the command filewrite, etc. without > problem. > > But the names may have idiosyncratic signs, or sub-words which Stata > interprets > as (probably) built-in related commands or , such as "divident", "series", > "PIF", etc. > <snip> Problem 1: Sometimes, a single quote. like in #1, 15, 17, 27, 30 > as in list above, > causes Stata to stop. > > Problem 2: Some words, like Series, divdent or PIF (see # 31, 32 and 33 > above) > gives error message as "option not allowed". > > > I tried many combinations of double quotes, but still cannot write out > those names. > If I use command "outfile", then all names are written out as is. > > > Is there any way to do it with command "file write" ? > > Thanks in advance. > > Akihito Tokuhara

* * 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/


Tag:


Links to this post:

Create a Link



<< Home

This page is powered by Blogger. Isn't yours?