x cd /pub/data/sf12000x/Tools; %let pgm=cnvt_sf12000x_momsas00; filename pgm "&pgm..sas"; *----Create a sf1x.momsas00 data set with summaries for MSAs as defined on census day 2000. We use the specially tabulated stf901x2.momsas00 set as the source for the 1990 pop. John Blodgett, Initial coding Oct. 15, 2001. ----*; libname user '/SAS_temp/user'; libname sf12000 '/pub/data/census_2000/sf12000' access=readonly; libname sf12000x '/pub/data/sf12000x'; %libname(stf901x2); /*<=========================Comment out===================================== data _2000; length default=5; length esriid $42.; merge sf1.mogeos(in=ing where=(sumlev='390')) sf1.mophng sf1.mopctng ; by geo_id; if ing; %include sascode(sf12000x.sas); keep sumlev geo_id geocode county tract areasqmi landsqmi intptlon intptlat esriid; *--in addtion to totpop etc.--; run; ===========================End commented out================================ */ data sf1x.momsas00; length areaname $64; merge _2000 (in=in2k) stf901x2.momsas00(in=in90 keep=geocode msacmsa areaname totpop rename=(totpop=totpop90)); by geocode; if in2k; if msacmsa in ('3760','7040') then areaname='Mo Portion of ' || areaname; areaname=trim(areaname)||' (As defined for Census 2000)'; change=totpop - totpop90; if totpop90 then pctchange=100*change/totpop90; run; proc contents data=sf1x.momsas00 position; run;