Hi folks,

I want to value label content to be shown for several variables. The problem is: some of the value labels are named as the variables are, and some labelnames deviate from the concerning varname.
So, the following does work, but outputs all the value labels existing in the dataset, not exclusively the ones attached to the specified variables (if they are numeric)!
Code:
foreach v of var var1 var2 var*_e2 {
capture confirm numeric variable `v' if !_rc {
[INDENT=2]label dir
labelbook `r(names)'[/INDENT]
}
 }
What command (similar to label dir) should do the trick?


Happy new year