x cd /pub/data/popests/Tools; %let pgm=invoke_dosetsYY; filename pgm "&pgm..sas"; /*--Invoke the %doset macro to create observations in the Datasets dataset for this directory. J. Blodgett, OSEDA, Apr 2012. This "12" version created separate from invoke_dosets just to save some clutter. Obviously it uses invoke_dosets.sas as its model and most of the datasets entries were created with that earlier version. 4/12 for vintage 2011 com datasets. 3/13 fir vintage 2012 com datasets. 5/13 fir vintage 2012 sc (place et al) datasets. 3/14 for vintage 2013 com datasets. 5/14 for vintage 2013 sc datasets. 3/15 for vintage 2014 com datasets. 5/15 for vintage 2014 sc and huest data sets. 12/15 for vintate 2015 usnst (nation & state) estimates through 2015. 3/16 for vintage 2015 com datasets. 3/17 for vintage 2016 com datasets. 5/17 for vintage 2016 sc and huests. 6/17 for vintate 2016 usnst (nation & state) estimates We also document the decade-of-change dataset uscom00_10 here. 8-27-12. -- */ title "Job to Invoke doset Macro for Sets in popests, creating popests.datasets"; %include '/pub/sas/autoexec.sas'; options mprint nosymbolgen; %let libnameg=popests; %let scmonth=July; *<===month in which sc estimates were released. Used in Source value--; libname popests '/pub/data/popests'; *libname archives '/pub/data/popests/archives'; *-- FIXES HERE; /* data POPESTS.MOSC16(outrep='LINUX_X86_64'); set POPESTS.MOSC16; run; data POPESTS.USSC16(outrep='LINUX_X86_64'); set POPESTS.USSC16; run; data POPESTS.ushuest2016(outrep='LINUX_X86_64'); set POPESTS.ushuest2016; run; data POPESTS.mohuest2016(outrep='LINUX_X86_64'); set POPESTS.mohuest2016; run; data POPESTS.uscomnst16(outrep='LINUX_X86_64'); set POPESTS.uscomnst16; run; */ %let Gyear=2021; *<======== CHANGE ; %let gyr=%substr(&gyear,3,2); %let gbyear=2020; %let yearp1= %eval(&Gyear + 1); %let gyr=%substr(&gyear,3,2); %let yearm1= %eval(&Gyear - 1); %let todolist=uscom&gyr mocom&gyr mocom&gyr.t mocomregns&gyr uscomcbsas&gyr; %*let todolist=ussc&gyr mosc&gyr ushuest&gyear mohuest&gyear uscomnst&gyr; /*<=========================Comment out===================================== %*let todolist=uscom00_10; %*let todolist=ussc12 mosc12; %*let todo=ushuest2012 mohuest2012; %let todo=ushuest2013 mohuest2013; %let todolist=uscomnst15; ===========================End commented out================================ */ %doset(libname=popests, memname=uscom&gyr, template=_template_uscom, sortprio=0); %doset(libname=popests, memname=mocom&gyr, template=_template_mocom, sortprio=0); %doset(libname=popests, memname=mocom&gyr.t, template=_template_mocomt, sortprio=0); %doset(libname=popests, memname=mocomregns&gyr, template=_template_mocomregns, sortprio=0); %doset(libname=popests, memname=uscomcbsas&gyr, template=_template_uscomcbsas, sortprio=0) ; /*<=========================Comment out===================================== %macro doyrs; %do gyr=11 %to 13; *-----1-time fix ran 5-5-14 after fix to the uscomcbsas_template -----*; %doset(libname=popests, memname=uscomcbsas&gyr,template=_template_uscomcbsas) ; %end; %mend doyrs; %**doyrs ; ===========================End commented out================================ */ /* ========================begin comment==================================== %doset(mode=,libname=popests, memname=_template_uscom, memlabel=%nrbquote(County estimates with components of change for 2020 through ~Gyear, entire US), geouniv=UnitedStates, units=state county, Years=%str(2020-~Gyear), CreatePgm=uscom20YY.cnvt, Keywords=Population estimates county components of change migration births deaths time series post 2020, Description=%nrbquote(Estimates of the total pop of counties, states and the US for July 1 of each year from 2020 to ~Gyear. along with annual birth, death, international and domestic migration estimates (the components of change).), keyvars=SumLev state county cbsa, keyfmats=SumLev state county cbsa, DataSource=%str(U.S. Bureau of the Census: FSCPE. Estimates released in spring, ~yearp1), SortedBy=State County, UsageNotes=%nrbquote(), SubType=1com, SetGroup=us, URLmeta=%str(https://mcdc.missouri.edu/pub/data/popests/CO-EST~gyear-alldata.pdf), VarSet=, debug=0); %doset(mode=,libname=popests, memname=_template_mocom, memlabel=%nrbquote(County estimates with components of change for 2020 through ~Gyear, Missouri only), geouniv=Missouri, units=state county, Years=%str(2020-~Gyear), CreatePgm=uscom20YY.cnvt, Keywords=Population estimates county components of change migration births deaths time series post 2020 Missouri, Description=%nrbquote(Estimates of the total pop of Missouri counties and the state for July 1 of each year from 2020 to ~Gyear. along with annual birth, death, international and domestic migration estimates (the components of change).), keyvars=SumLev state county cbsa, keyfmats=SumLev state county cbsa, DataSource=%str(U.S. Bureau of the Census: FSCPE. Estimates released circa April, ~yearp1), SortedBy=County, UsageNotes=%nrbquote(), SubType=1com, SetGroup=mo, URLmeta=%str(https://mcdc.missouri.edu/pub/data/popests/CO-EST~gyear-alldata.pdf), VarSet=, debug=0); %doset(libname=popests,memname=_template_mocomt, geouniv=Missouri,units=variable, Years=%str(2020-~Gyear), CreatePgm=uscom20YY.cnvt, Description=%nrbquote(This is the mocom~gyr data set transposed so that the rows are the data items and each column contains data for 1 geographic area.), UsageNotes=%nrbquote(), keyvars=variable, keyidvars=Item_description, SubType=1com, SetGroup=mo, URLmeta=%str(), VarSet=, debug=0); %doset(libname=popests,memname=_template_mocomregns, geouniv=Missouri,units=rpc ded umx dot aaa cbsa etc, Years=%str(2020-~Gyear), CreatePgm=aggpopests_moregns, Description=%nrbquote(We aggregated the corresponding Missouri county level dataset to create these region totals), UsageNotes=%nrbquote(), keyvars=sumlev cbsa , keyfmats=sumlev cbsa , SubType=1com, SetGroup=mo, URLmeta=%str(), VarSet=, debug=0); %doset(libname=popests,memname=_template_uscomcbsas, memlabel=Pop Ests with Components of Change 2020-20~gyr agg to CBSAs as defined for 20&gyr, geouniv=United States,units=cbsa US, Years=%str(2020-~Gyear), CreatePgm=aggpopests_uscbsas, Description=%nrbquote(We aggregated the corresponding US county level dataset to create these Core Based Statistical Area totals), UsageNotes=%nrbquote( ), keyvars=sumlev cbsa state , keyfmats=sumlev cbsa state, SubType=1com, SetGroup=us, URLmeta=%str(), VarSet=, debug=0); %doset(mode=,libname=popests, memname=_template_ussc2, memlabel=%nrbquote(Subcounty estimates for 2020 through ~Gyear, entire US), geouniv=UnitedStates, units=place county mcd, Years=%str(2020-~Gyear), CreatePgm=ussccnvt20YY, Keywords=Population estimates subcounty place mcd time series post 2020, Description=%nrbquote(Estimates of the total pop of places (cities) and other sub-county governmental units. The 2020 census count and an adjusted estimate base figure are provided along with July 1 estimates for each year starting with 2020 and ending with ~Gyear.), keyvars=SumLev state county placefp , keyfmats=SumLev state county fplace, keyquals=| | | state , DataSource=%str(U.S. Bureau of the Census: FSCPE. Estimates released circa ~scmonth, ~yearp1), SortedBy=State, UsageNotes=%nrbquote( ), SubType=2sc, SetGroup=us, VarSet=, URLMeta=, debug=1); %doset(mode=,libname=popests, memname=_template_mosc2, memlabel=%nrbquote(Subcounty estimates for 2020 through ~Gyear, Missouri only), geouniv=Missouri, units=place county mcd, Year=%str(2020-~Gyear), CreatePgm=ussccnvt20YY, Keywords=Population estimates subcounty place mcd time series post 2020 Missouri, Description=%nrbquote(Estimates of the total pop of places (cities) and Minor Civil Divisions in 22 Missouri counties where the county subdivsions are also governmental units. The 2020 census count and an adjusted estimate base figure are provided along with July 1 estimates for each year starting with 2020 and ending with ~Gyear.), keyvars=SumLev state county placefp , keyfmats=SumLev state county fplace, keyquals=| | | state , DataSource=%str(U.S. Bureau of the Census: FSCPE. Estimates released circa ~scmonth, ~yearp1), UsageNotes=%nrbquote( ), SubType=2sc, SetGroup=mo, VarSet=, URLMeta=, debug=0); %doset(mode=,libname=popests, memname=uscom00_10, memlabel=%nrbquote(State, county est components of change for decade 2000-2020), geouniv=UnitedStates, units=state county, Year=%str(2000, 2020), CreatePgm=uscomp2000_2020, Keywords=Population estimates state county 2000 2020 components change natural increase net migration, Description=%nrbquote(Combine Evaluation estimates and the latest post-2020 comps to get April 1 to April 1 decade changes), keyvars=SumLev state county cbsa, keyfmats=SumLev state county cbsa, DataSource=%str(U.S. Bureau of the Census: FSCPE. Evaluation ests for 4-1-00 through 7-1-10), UsageNotes=%nrbquote( ), SubType=1com, sortprio=2, SetGroup=us, VarSet=, URLMeta=%str(http://www.census.gov/popest/research/eval-estimates/eval-est.html), debug=0); ==========================end comment====================================== */ %doset(mode=,libname=popests, memname=mosc&gyr,template=_template_mosc2) %doset(mode=,libname=popests, memname=ussc&gyr,template=_template_ussc2) %doset(mode=,libname=popests, memname=ushuest&gyear,geouniv=United States,units=%str(county state nation), Years=%str(&gbyear-&gyear),CreatePgm=huestsYY, keywords=housing unit estimates, Description=%nrbquote(Estimates of total housing units by county for each year since &gbyear through &gyear), DataSource=%str(U.S. Bureau of the Census), keyvars=sumlev state county, keyfmats=sumlev state county, SortedBy=state county, SetGroup=us, SubType=5other, VarSet=, URLMeta=, debug=0); %doset(mode=,libname=popests, memname=mohuest&gyear,geouniv=Missouri,units=%str(county state), memlabel=%nrbquote(Mo subset view of ushuest&gyear data set: HU estimates), Years=%str(&gbyear-&gyear),CreatePgm=huestsYY, keywords=housing unit estimates, Description=%nrbquote(Mo subset of ushuest&gyear.: total housing units by county for each year since &gbyear through &gyear), DataSource=%str(U.S. Bureau of the Census), keyvars=sumlev state county, keyfmats=sumlev state county, SortedBy=county, SetGroup=mo, SubType=5other, VarSet=, URLMeta=, debug=0); %doset(mode=,libname=popests, memname=uscomnst&gyr, memlabel=%nrbquote(Nation and State level estimates with components of change for 2020 through &Gyear), geouniv=UnitedStates, units=nation state region, Years=%str(2020-&Gyear), CreatePgm=uscom202Ynst.cnvt, Keywords=Population estimates state components of change migration births deaths time series post 2020, Description=%nrbquote(Estimates of the total pop of the nation and states (and PR) for July 1 of each year from 2020 to &Gyear. along with annual birth, death, international and domestic migration estimates (the components of change).), keyvars=SumLev state, keyfmats=SumLev state, DataSource=%str(U.S. Bureau of the Census: FSCPE. Estimates released in December, &gyear.), SortedBy=State County, UsageNotes=%nrbquote(), SubType=1com, SetGroup=us, URLmeta=%str(http://www.census.gov/popest/data/national/totals/&gyear./NST-EST&gyear.-alldata.html), VarSet=, debug=0); proc sort data=popests.datasets out=bysortprio; by sortprio; run; proc datasets library=popests nolist; modify datasets; index delete dataset memname; index create dataset=(libname memname) / unique; index create memname; quit; options mprint msglevel=i; %gendshtm(libname=popests,debug=1,runprocc=1); run; %*--the archives subdirectory is a soft link to /pub/data2/archives/popests--; %*gendshtm(libname=archives,filetype=popests,debug=1,runprocc=1,memindex=0);