/* Update the mable22 datasets and views used by the geocorr 2022 web application. Adding CT planning regions, Dec. 2023. */ %include '/pub/sas/autoexec.sas'; options fmtsearch=(mable22 sasctlgs); options nosource nosource2 nomprint nomlogic nosymbolgen notes; libname mable22 '/pub/data/mable22'; PROC SQL; CREATE TABLE ct_blocks AS SELECT t1.GEOID, t1.State, t1.County, t1.CountySC, t1.County3, t2.CTRegion LABEL="Connecticut planning region", t1.CouSub20, t1.Place, t1.PlaceSC, t1.InPlace, t1.Tract, t1.BlockGroup, t1.Block, t1.NECTA, t1.NECTADiv, t1.CNECTA, t1.ConsCity, t1.SDElem20, t1.SDSec20, t1.SDUni20, t1.SDBest20, t1.SDBestType20, t1.PUMA12, t1.PUMA22, t1.CD116, t1.CD117, t1.CD118, t1.SLDU22, t1.SLDL22, t1.SLDU18, t1.SLDL18, t1.VTD20, t1.UA, t1.UR, t1.ZCTA, t1.HSA19, t1.HRR19, t1.AIANNH, t1.MOLibrary, t1.IntPtLat, t1.IntPtLon, t1.LandSQMI, t1.AreaSQMI, t1.pop20, t1.HUs20 FROM mable22.ct_blocks t1 LEFT JOIN mable22.ct_regions_for_mable t2 ON (t1.GEOID = t2.GEOID); QUIT; data mable22.ct_blocks; set ct_blocks; run; * Create the views. ; data mable22.ctv/view=mable22.ctv; merge mable22.ct_blocks mable22.ct_counties ; by county; run;