x cd /pub/data/acs2011/Tools; %let pgm=test_newbasetbls; filename pgm "&pgm..sas"; *---Run some tests to get a feel for access times etc for the newly generated (by GR, 4-4-13) acs base tables. jgb, 4-8-13. ---*; libname btabs11r '/pub/data/acs2011/revised_basetbls' ; libname btabs11 '/pub/data/acs2011/basetbls'; %libname(acs2011); *---Test 1: Can we match to our allgeos data set without extra sorting.---*; data ids1; merge btabs11r.ustabs085yr(keep=state geoid logrecno rename=(logrecno=logrecnor state=stater geoid=geoidr) in=in11r) acs2011.allgeos2007_2011(keep=state geoid sumlev logrecno where=(not(sumlev in('080','140','150'))) in=ingeos); *by state geoid; *if not (in11r and ingeos) then do; if logrecnor ne put(logrecno,z7.) or (geoid ne geoidr) then do; _nomatch+1; if _nomatch le 50 then put / _all_; else abort abend; end; run;