Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: truncation with -word- function


From   David Kantor <[email protected]>
To   [email protected]
Subject   Re: st: truncation with -word- function
Date   Fri, 16 Dec 2011 13:01:04 -0500

Wow. Of course.
I should have known.
Thanks so much.
--David

At 12:47 PM 12/16/2011, Matthew White wrote:
Hi David,

local word20 : word 20 of `zzz'

See -help extended_fcn-. Also see [U] 18.3.4 and:

SJ-8-4  pr0045  . . . . . . . . Stata tip 70: Beware the evaluating equal sign
       . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  N. J. Cox
       Q4/08   SJ 8(4):586--587                                 (no commands)
       tip explaining the pitfall of losing content in a macro
       because of limits on the length of string expressions

Best,
Matt

On Fri, Dec 16, 2011 at 12:40 PM, David Kantor <[email protected]> wrote:
> Hello,
> I have encountered a problem with the -word- function.
> Suppose zzz is a macro containing a long list of names. An expressions such
> as
>        word("`zzz'", 20)
> cuts off after the 245th character of `zzz'.
> Does anyone know of a way around this?
> I use Stata 10.
>
> Thanks
> --David
[...]

--
Matthew White
Data Coordinator
Innovations for Poverty Action
101 Whitney Avenue, New Haven, CT 06510 USA
+1 434-305-9861
www.poverty-action.org

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index