capture log close set more off clear log using science3-support, replace set linesize 80 version 9.1 // pgm: science3-support.do // task: clean-up dataset // author: tait medina // date: 2007-05-23 // #1 // get data use science2 , replace // #2 // check varnames nmlab //o.k. // #3 // add values to valnames with numlabel foreach lbl in joblbl faclbl wtchlb wadmnlb wunivlb nopublb prstlb /// worklbl fellbl femlbl malelb naslb { numlabel `lbl', mask(#_) add } save science3 , replace log close exit // exit do-file