x cd /pub/data/popests/Tools; %let pgm=invoke_dosets19; filename pgm "&pgm..sas"; /* Invoke the %doset macro to create observations in the Datasets dataset for this directory. 4/12 for vintage 2011 com datasets. 3/13 for vintage 2012 com datasets. 5/13 for 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=May; *<===month in which sc estimates were released. Used in Source value--; libname popests '/pub/data/popests'; *-----Run this step ONLY ONCE------------------------------------------; *----If you need to rerun (start over) then delete the datasets dataset first. doset will not allow initialize mode if the datasets set already exists.---; %doset(mode=initialize, libname=popests,debug=1); *----------------------------------------------------------------------; %let Gyear = 2020; *<====================================== CHANGE ; %let gyr=%substr(&gyear,3,2); %let gbyear=2010; %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 mohuest&gyear uscomcbsas&gyr mosc&gyr ussc&gyr; %*let todolist=ussc&gyr mosc&gyr ushuest&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(mode=,libname=popests, memname=_template_uscom, geouniv=UnitedStates, units=state county, Years=%str(2010-~Gyear), CreatePgm=uscom20YY.cnvt, Keywords=Population estimates county components of change migration births deaths time series post 2010, Description=%nrbquote(Estimates of the total pop of counties, states and the US for July 1 of each year from 2010 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, geouniv=Missouri, units=state county, Years=%str(2010-~Gyear), CreatePgm=uscom20YY.cnvt, Keywords=Population estimates county components of change migration births deaths time series post 2010 Missouri, Description=%nrbquote(Estimates of the total pop of Missouri counties and the state for July 1 of each year from 2010 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(2010-~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(2010-~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, geouniv=United States,units=cbsa US, Years=%str(2010-~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, geouniv=UnitedStates, units=place county mcd, Years=%str(2010-~Gyear), CreatePgm=ussccnvt20YY, Keywords=Population estimates subcounty place mcd time series post 2010, Description=%nrbquote(Estimates of the total pop of places (cities) and other sub-county governmental units. The 2010 census count and an adjusted estimate base figure are provided along with July 1 estimates for each year starting with 2010 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, geouniv=Missouri, units=place county mcd, Year=%str(2010-~Gyear), CreatePgm=ussccnvt20YY, Keywords=Population estimates subcounty place mcd time series post 2010 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 2010 census count and an adjusted estimate base figure are provided along with July 1 estimates for each year starting with 2010 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(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) ; %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=uscom00_10, geouniv=UnitedStates, units=state county, Year=%str(2000, 2010), CreatePgm=uscomp2000_2010, Keywords=Population estimates state county 2000 2010 components change natural increase net migration, Description=%nrbquote(Combine Evaluation estimates and the latest post-2010 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); %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), 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, geouniv=UnitedStates, units=nation state region, Years=%str(2010-&Gyear), CreatePgm=uscom201Ynst.cnvt, Keywords=Population estimates state components of change migration births deaths time series post 2010, Description=%nrbquote(Estimates of the total pop of the nation and states (and PR) for July 1 of each year from 2010 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;