Hello Lilian,
Stata's limit for string variables is 244 characters and if you need a
string variable longer than that, then the answer is: you can do
nothing. However in 99% of practical situations there are workarounds.
Stata can handle long strings, and this allows to process string data
of lengths>244 (up to about 1mln in SE and MP). If you need a string
variable with length more than 244, this means that there is probably
something inefficient in your program/strategy, which can be changed.
Depending on what you are doing, there may be a very easy workaround.
Just describe what you want to do with that variable.
In most general case, you define an array of string macros, and store
indices, retrieving the string data by id whenever it is needed.
However this will be slow and inefficient.
Best regards,
Sergiy Radyakin
On 2/1/08, Lilian Galer <[email protected]> wrote:
> Dear Statalisters,
>
> I need to generate a string variable based on the values of another ones,
> but the length of a string is limited to 244 characters (the resulting
> variable has to have more than 244 characters). Who knows, what can I do?
>
> Thanks in advance,
> Lilian Galer
> Head of Sample Surveys Unit
> National Bureau of Statistics of the Republic of Moldova
>
> *
> * 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/
>
*
* 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/