x cd /pub/data/acspums/Tools; %let pgm=acs2007; filename pgm "&pgm..sas"; *---Access pc sas datasets for the 20&yr.7ACS pums for Mo & US. As downloaded from AFF site, 9-24-08, jgb. The national datasets are split into 2 parts this year. ushrecs07 contains data for states Alabama thru Mississippi (01 to 28), and ushrecs07b contains data for Missouri thru Wyoming. ---*; **libname temp 'c:\temp'; libname acspums '/pub/data/acspums'; %let year=2007; %let yr=%substr(&year,3,2); /* =======================Begin comment================ proc datasets library=acspums nolist; *--rename the datasets as downloaded from the Bureau (as SAS datasets!)--*; change psam_pusa=usprecs&yr.; change psam_husa=ushrecs&yr.; change psam_pusb=usprecs&yr.b; change psam_husb=ushrecs&yr.b; quit; ======================End comment================== */ data acspums.mohrecs&yr.; set acspums.ushrecs&yr.b; where st='29'; run; data acspums.moprecs&yr.; set acspums.usprecs&yr.b; where st='29'; run; proc contents data=acspums.mohrecs&yr.; proc contents data=acspums.moprecs&yr.;