x cd /pub/data/bls/Tools; %let pgm=bls_laus; filename pgm "&pgm..sas"; *--- Coded by ejc (August 2004) The data are from the U.S. Bureau of Labor Statistics. Indicators will be extracted for all U.S. counties for all series available. This file will have one line per year per measure for each geography. ---*; libname custom '/pub/data/indctrs/custom'; libname bls '/pub/data/bls'; options NOmprint; %let filter= %str( ); *<-------complete processing run-----; data lau; infile "/pub/data/bls/la.data.*"; input series $ 1-3 atype $ 4-5 state $ 6-7 cnty $ 8-10 fipco $ 6-10 measure $ 12-13 year $ 19-22 period $ 24-26 data 31-39 ; county=fipco; format county $county.; proc sort; by state fipco; data lau1; set lau; if cnty='000' then sumlev='040'; else sumlev='050'; if period='M13' and atype='CN' or atype='ST'; if series ne 'LAU' then delete; if year in('1988','1989') then delete; if measure = '03' then uerate=data; else if measure = '04' then unemployment=data; else if measure = '05' then employment=data; else if measure = '06' then labforce=data; attrib series label='Local Area Series Type'; attrib atype label='Area Type'; attrib measure label='Type of Measure or Indicator'; attrib year label='Year of Data'; attrib period label='Time Period--month or annual'; attrib uerate label='Unemployment Rate' format=5.1; attrib unemployment label='Unemployment' format=comma9.; attrib employment label='Employment' format=comma9.; attrib labforce label='Labor Force' format=comma9.; proc sort; by state fipco; data bls.usstco_emp_1990_2003; drop series atype cnty period data; set lau1; proc contents; title 'BLS Annual Local Area Employment Indicators, 1990-2003'; run;