x cd /pub/data/sf12000x/Tools; %let pgm=cnvt_sf12000x_motracts; filename pgm "&pgm..sas"; *----Specific occurrence of general convert routine. Run just for census tracts in Mo with use of the pl9490tx files for trends. and John Blodgett, Initial coding July 16, 2001. ----*; libname sf12000 '/pub/data/census_2000/sf12000' access=readonly; libname sf12000x '/pub/data/sf12000x'; libname pl9490tx '/pub/data/pl9490/pl9490tx' access=readonly; libname user '/tmp/storage/john'; /*<=========================Comment out===================================== data _2000; length default=5; length esriid $42.; merge sf1.mogeos(in=ing where=(sumlev='140')) 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.motracts; merge _2000 (in=in2k) pl9490tx.motrs00(in=in90 keep=county tract geocode totpop rename=(totpop=totpop90)); by geocode; if in2k; change=totpop - totpop90; if totpop90 then pctchange=100*change/totpop90; run; proc contents data=sf1x.motracts position; run;