capture program drop preserve_labels
program preserve_labels
args collapse_statement
foreach var of varlist * {
local `var': variable label `var'
}
`collapse_statement'

foreach var of varlist * {
 label var `var' "``var''"
}

end