/* Update the mable09 datasets and views used by the geocorr 2000 web application. Adding 110th Congressional Districts, October 20, 2026. For most states these are the same as 109th CDs. */ %include '/pub/sas/autoexec.sas'; options fmtsearch=(mableo9 sasctlgs); options nosource nosource2 nomprint nomlogic nosymbolgen notes; libname mable09 '/pub/data/mable09'; %macro doit(state,stab); PROC SQL; CREATE TABLE &stab.blks07 AS SELECT t1.County, t1.Tract, t1.Block, t1.Cnty, t1.CntySC, t1.CouSubFP, t1.PlaceFP, t1.PlaceSC, t1.BG, t1.cd106, t1.sldu, t1.sldl, t1.vtd, t1.ZCTA5, t1.pop2k, t1.hus2k, t1.IntPtLat, t1.IntPtLon, t1.SDElm, t1.SDSec, t1.SDUni, t1.TAZ, t1.LandSQMI, t1.AreaSQMI, t1.PopDen, t1.placece, t1.cousubce, t1.InPlace, t1.ur, t1.ur90, t1.puma5, t1.ua, t1.ur00cor, t1.ua00cor, t1.ua90red, t1.ur90red, t1.cd108, t1.ua90, t1.cd109, t1.cd109 label="Cong District - 110th" as cd110, t1.sldu02, t1.sldl02, t1.necta, t1.nectadiv FROM mable09.&stab.blks07 t1 QUIT; data mable09.&stab.blks07; set &stab.blks07; run; * Create the views. ; data mable22.&stab.v/view=mable22.&stab.v; merge mable22.&stab._blocks mable22.&stab._counties ; by county; run; %mend doit; /* begin comment ==================================== %dostates(01 02 04 05 06 08 09 10 11 12 13 15 16 17); %dostates(18 19 20 21 22 23 24 25 26 27 28 29 30 31); %dostates(32 33 34 35 36 37 38 39 40 41 42); %dostates(44 45 46 47 48 49 50 53 54 55 56); %dostates(51 72); %dostates(10 11); ========================== end comment */ %dostates(n=52);