[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Storing the output of a list command in a local macro
Hi,
In the hope not to have overlooked something obvious in the help files 
or in the statlist archives, here's my problem:
I wonder whether it is possible to store certain variable values that 
come as an output of a list command into a local macro. Consider the 
following simple command:
list var1 if var2==x
How can I efficiently store the resulting values of var1 in a local? Of 
course, if there is a solution bypassing the list comand, I'd be happy, too.
Thank you very much in advance,
Chris
*
*   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/