I have an rclass program which returns a long string in r(rf). I want
to write this string to a file. I can do this using
. file write `FH' (r(rf)) _n
when the string is not too long, but it is truncated when it exceeds 244
characters due to stata's limit on strings.
So, is there an alternative method to either:
- return the long string in a different way so it is more usable in file
write
or
- call file write differently so r(rf) doesn't get evaluated (which is
when the truncation occurs)?
Many thanks, Chris.
*
* 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/