Hi, it seems that the extended macro function ": word # of ..."
truncates long words. For example:
. local s
. forv i=1/1000 {
2. local s "`s's"
3. }
. local w: word 1 of `s'
. di `:length local w'
503
The length of w should be 1000, not 503.
I am using Stata/SE 9.1 and the maximum number of characters
in a macro is 1,081,511. I therefore think the maximum number
of characters in a macro returned by ": word # of ..." should
also be 1,081,511. Or am I missing something here?
ben
*
* 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/