Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Problem with extended macro function ": word # of ..."


From   "Jann Ben" <[email protected]>
To   <[email protected]>
Subject   st: Problem with extended macro function ": word # of ..."
Date   Wed, 16 Nov 2005 22:49:18 +0100

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index