Try this.
unab varlist: _all
See also, -help unab-.
-- David
At 03:11 PM 10/24/2003 -0500, you wrote:
Dear Statalist,
I would like to define a local that contains the names of all of the
variables in my dataset. I would like to write something like this:
local varlist: _all or local varlist "*"
but these commands do not work. I can perform this using
local varlist "A1-Z100"
but I would like to do for a large number of files where the variable
names are different in each dataset and they are not sorted in
alphabetical order.
Dimitriy V. Masterov
[...]
David Kantor
Institute for Policy Studies
Johns Hopkins University
[email protected]
410-516-5404
*
* 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/