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: AW: st: max length of 244 characters


From   SCHOUMAKER Bruno <bruno.schoumaker@uclouvain.be>
To   statalist@hsphsun2.harvard.edu
Subject   Re: AW: st: max length of 244 characters
Date   Tue, 13 Jul 2010 17:44:00 +0200

Wonderful, it works :-)
Thank you once again for your help.
Bruno

Le 13/07/2010 17:40, Martin Weiss a écrit :
<>



Also see NJC`s http://www.stata-journal.com/article.html?article=pr0045




HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Maarten buis
Gesendet: Dienstag, 13. Juli 2010 17:35
An: stata list
Betreff: RE: st: max length of 244 characters

-- SCHOUMAKER Bruno wrote:
The problem is that the macro seems to limited to 244 characters :
`TFR_t' is truncated to 244 characters.

Is there a way to store a longer string expression ?
The trick is to avoid evaluation of the local, which means that you
need to leave out the equal sign. For example I would write the line

local TFRj`i'="TotFR`i'=(" + "`TFR'" + "`mult`i''" + ") "

as

local TFRj`i' "TotFR`i'=( `TFR' `mult`i'' )"

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------




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


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


--
Bruno SCHOUMAKER

Centre de recherche en démographie et sociétés
Université catholique de Louvain
1-17 PLace Montesquieu
1348 Louvain-la-Neuve
BELGIUM

Tel. +32 10 474136
Fax. +32 10 472952

bruno.schoumaker@uclouvain.be
www.uclouvain.be/demo

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index