In answer to your first question, perhaps:
====== save this as ds_varlab.ado =========
program ds_varlab
quietly ds
foreach var of varlist `r(varlist)' {
di "`var'" _col(36) "`: variable label `var''"
}
end
=======================================
. sysuse auto, clear
. d_var
make Make and Model
price Price
mpg Mileage (mpg)
rep78 Repair Record 1978
headroom Headroom (in.)
trunk Trunk space (cu. ft.)
weight Weight (lbs.)
length Length (in.)
turn Turn Circle (ft.)
displacement Displacement (cu. in.)
gear_ratio Gear Ratio
foreign Car type
Phil
At 05:44 PM 20/06/2006 -0700, you wrote:
Hi,
I've checked the user's guide, programming and the
reference guide. I want to use describe and only want
the variable name and variable label - not the other
information. Also, when I use a table command - I
would like to see BOTH the variable name and the
variable label - is this possible?
Thanks,
Buddy
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
*
* 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/
Philip Ryan
Associate Professor,
Discipline of Public Health
Director, Data Management & Analysis Centre
Associate Dean (IT)
Faculty of Health Sciences
postal address:
Department of Public Health
Mail Drop 511
University of Adelaide 5005
South Australia
location:
Level 6
Bice Building
Royal Adelaide Hospital
North Terrace
Adelaide
tel 61 8 8303 3570
fax 61 8 8223 4075
http://www.public-health.adelaide.edu.au/
CRICOS Provider Number 00123M
-----------------------------------------------------------
This email message is intended only for the addressee(s)
and contains information that may be confidential and/or
copyright. If you are not the intended recipient please
notify the sender by reply email and immediately delete
this email. Use, disclosure or reproduction of this email
by anyone other than the intended recipient(s) is strictly
prohibited. No representation is made that this email or
any attachments are free of viruses. Virus scanning is
recommended and is the responsibility of the recipient.
*
* 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/