/* Fix Missouri-specific regions (DED, DOT, Extension, RPC, AAA) */ %include '/pub/sas/autoexec.sas'; options fmtsearch=(mable22 sasctlgs); options nosource nosource2 nomprint nomlogic nosymbolgen notes; libname mable22 '/pub/data/mable22'; %macro doit(state,stab); proc sql; create table &stab._counties as select t1.State, t1.Stab, t1.County, t1.County3, t1.countySC, t1.Region, t1.Division, t1.CBSA20, t1.CBSAType20, t1.CSA20, t1.Metdiv20, t1.CBSA23, t1.CBSAType23, t1.CBSACentral23, t1.CSA23, t1.Metdiv23, t1.RUCC23, t1.LSAD, t1.FuncStat, t2.MERIC label="MO DED regions" as MO_MERIC, t2.RPC label="MO Regional Planning Council areas" as MO_RPC, t2.MODOT label="MO Dept. of Transportation districts" as MO_DOT, t2.UEX label="MO Extension regions" as MO_UEX, t2.AAA label="MO Area Agencies on Aging regions" as MO_AAA, t1.CtyPop20, t1.CtyHUs from mable22.&stab._counties t1 left join mable22.mo_regions t2 on (t1.county = t2.county); quit; data mable22.&stab._counties; set &stab._counties; run; * Create the views. ; data mable22.&stab.v/view=mable22.&stab.v; merge mable22.&stab._blocks mable22.&stab._counties ; by county; run; %mend doit; %dostates(29); * MO only;