Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: posting a long list


From   "FEIVESON, ALAN H. (AL) (JSC-SD) (NASA)" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   RE: st: posting a long list
Date   Mon, 24 Jun 2002 16:23:36 -0500

Lee, Nick, Antoine - 

That's exactly the problem - the "equals" sign. 

Now that you guys mention it, I recall a discussion on this some time ago.


Thanks to all of you!

Al

-----Original Message-----
From: Antoine Terracol [mailto:[email protected]]
Sent: Monday, June 24, 2002 10:51 AM
To: [email protected]
Subject: Re: st: posting a long list


Hello,
I've been trapped by the "80 chars limit" many times before learning the 
trick.
You must append each name to the existing macro without the "=" sign:

local list ""
local i=1
while `i'<=100 {
                        local list "`list' `i'" <<< no "=" sign
                        local i=`i'+1
                        }

di "`list'"

Hope this helps,
Antoine

FEIVESON, ALAN H. (AL) (JSC-SD) (NASA) wrote:

>Hello - I'm trying to use -postfile- to post a long list of names stored in
>a macro (I tried both local and global). When I try to build this macro by
>appending each name, one at a time, it refuses to exceed 80 characters in
>length. 
>
>1. Is there a way to make a macro longer than 80 characters?
>
>2. Is there a way to use postfile to get around this, say by repeated
>postfile commands?
>
>Thanks
>
>Al Feiveson
>*
>*   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/
*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index