Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: obtaining varlist from other dataset


From   kantor.d@att.net
To   statalist@hsphsun2.harvard.edu
Subject   st: obtaining varlist from other dataset
Date   Sat, 02 Feb 2008 02:15:01 +0000

Hi.

Is it possible to get a list of the variables from a dataset not currently in memory -- say in a macro?

If I do
des using otherdataset
I see the variables in that dataset. But can I get those variables into a macro?

Presently, I -use- the other dataset (-in 1-, to save space, but not time), and then -unab-. It works, but is there a more direct way, without loading the data?

I have a vague sense that I've asked this before; so excuse me if I've forgotten the answer.

Thanks
--David
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index