Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: Truncated string observations from CSPro


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Truncated string observations from CSPro
Date   Mon, 11 Feb 2013 22:21:11 +0000

OK; it is something else.

No idea personally; I haven't even heard of CSPro. Someone else should
know more.

Meanwhile, you gave no details whatsoever on exactly how you imported
data into Stata. Better if you can give exact code; even better if you
can give a reproducible example.

Nick

On Mon, Feb 11, 2013 at 10:05 PM, Donovan, Kathleen
<kdonovan@louisberger.com> wrote:
> Some may be longer than 244 but it is importing the observations as a str8, for example. How did it choose str8 for that variable? Furthermore, it is not uniform across  the cspro field notes being imported. They range from str8 to str15.
>
> -Kathleen
>
> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Nick Cox
> Sent: Monday, February 11, 2013 4:49 PM
> To: statalist@hsphsun2.harvard.edu
> Subject: Re: st: Truncated string observations from CSPro
>
> One kind of truncation could be that no version of Stata allows string variables longer than 244 characters. See -help limits-. Perhaps you are referring to something else, but let's exclude that as a possibility....
>
> Nick
>
> On Mon, Feb 11, 2013 at 8:36 PM, Donovan, Kathleen <kdonovan@louisberger.com> wrote:
>> We are getting truncated string observations when we bring data field notes from a CSPro database. We are not sure which program is causing the problem either; CSPro or Stata.  Looking at the CSPro-created dictionary, I cannot tell what is determining string value length.  This is automatically created and I don't know how to systemically edit it to tell stata which string fields should be longer. Anyone else have this problem or know what causes truncated string values?
>>

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


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index