clear #delimit; global years "89 90 91 92 93 94 95 96 97 98 99 00 01 02 03 04 05 06"; global years "00 01 02 03 04 05 06"; global months "01 02 03 04 05 06 07 08 09 10 11 12"; /* foreach year of global years{; foreach month of global months{; global file="`year'`month'"; !gunzip -f ~/data/cps/monthly/datafiles/cpsb$file.dta; if `year'>=89 & `year'<=93{; use ~/data/cps/monthly/datafiles/cpsb$file.dta; keep if a_lfsr==3|a_lfsr==4; save /Sastemp/cpsbu$file, replace; }; if `year'>=94|`year'<=6{; use ~/data/cps/monthly/datafiles/cpsb$file.dta; keep if pemlr==3|pemlr==4; save /Sastemp/cpsbu$file, replace; }; }; }; exit; set obs 1; gen a=.; global years "89 90 91 92 93"; foreach year of global years{; foreach month of global months{; global file="`year'`month'"; append using /Sastemp/cpsbu$file; }; }; save /Sastemp/cpsbui_pool_89_93, replace; ex; set obs 1; gen a=.; global years "94 95 96 97 98 99 00 01 02 03 04 05 06"; foreach year of global years{; foreach month of global months{; global file="`year'`month'"; append using /Sastemp/cpsbu$file; }; }; save /Sastemp/cpsbui_pool_94_06, replace; }; */