Does "label" mean variable label or value label (or both)? Anyway:
sysuse auto, clear
foreach var of varlist *{
di "`var'" _col(20) "`: var l `var''" _col(50) "`: val l `var''"
}
HTH
Martin
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Peter Schofield
Sent: Monday, September 29, 2008 11:26 AM
To: [email protected]
Subject: st: simple variable list with labels
I'd like to be able to produce a simple list of full variable names and
labels that can be pasted into a spreadsheet.
So far i've tried using codebook and describe but these either produce
too little or too much output.
Ideally i'm looking for something like the uselabel command i.e.
creating a new dataset comprising names and labels.
Any ideas?
--
Peter Schofield
Department of General Practice and Primary Care
King's College London School of Medicine
5 Lambeth Walk, London,
SE11 6SP
Tel: 020 7848 4100
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/