/* remove tracts and BGs from 2012 - 2021 usmcdcprofiles5yr and reindex (state) tract = sumlevel 140 bgs = 150 */ %include '/pub/sas/autoexec.sas'; options source compress=binary; libname acsfix '/pub/data/acs2021' ; data acsfix.usmcdcprofiles5yr (index=(state)); set acsfix.usmcdcprofiles5yr (drop=tract BG); where sumlev ne '140' and sumlev ne '150'; run;