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   "Donovan, Kathleen" <kdonovan@louisberger.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Truncated string observations from CSPro
Date   Mon, 11 Feb 2013 22:05:51 +0000

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/



*
*   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