/* Generate the mable22 views used in the geocorr 2022 web application. This program merges two datasets created in previously run setups. */ %include '/pub/sas/autoexec.sas'; options fmtsearch=(mable22 sasctlgs); options nosource nosource2 nomprint nomlogic nosymbolgen nonotes; libname mable22 '/pub/data/mable22'; PROC SQL; CREATE TABLE mable22.ny_blocks AS SELECT t1.GEOID, t1.State, t1.County, t1.CountySC, t1.County3, 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.CD118, t1.SLDU22, t2.SLDL22 LABEL="State legislative district, lower (2022)" AS SLDL22, t1.CD116, t1.SLDU18, t1.SLDL18, t1.VTD20, t1.ZCTA, t1.HSA19, t1.HRR19, t1.MOLibrary, t1.IntPtLat, t1.IntPtLon, t1.LandSQMI, t1.AreaSQMI, t1.pop20, t1.HUs20 FROM mable22.ny_blocks t1 LEFT JOIN mable22.ny_fix t2 ON (t1.GEOID = t2.GEOID); QUIT;