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]

st: {smcl} link problem


From   Sergiy Radyakin <serjradyakin@gmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: {smcl} link problem
Date   Tue, 4 Jun 2013 16:13:42 -0400

Dear All,

I don't know which limit from 'help limits'  is applicable in this
case, but it seems that ~244 is rather a small number here. I would
imagine that "# of characters in a command" is more suitable.
In the following code snippet the smcl link gets corrupted after the
link text becomes too long (in my code the list supplied to the link
is list of different variables of course):

*   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *
 *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *
mata

adjvars=""
for(v=1;v<=99;v++) {
  v
  adjvars=adjvars+" x12345"
  printf("{text}Message: {stata " + `"""' + "describe " +
adjvars+`"":"'+"INFO"+"}")
  ""
}

end
*   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *
 *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *
Can somebody please confirm that 244 is indeed an intended and
unavoidable limit on such a link size, or is it a bug and is there a
workaround?

Stata 12/MP/Windows

Thank you, Sergiy Radyakin
*
*   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