x cd /pub/data/acs2013/Tools; %let pgm=invoke_dosets; filename pgm "&pgm..sas"; /*--Invoke the %doset macro to create observations in the Datasets dataset for this directory. NOTE: See setups in acs/Tools/invoke_dosets* for creating metadata sets for the base tables. J. Blodgett, OSEDA, Sept. 2014 -- */ title "Job to Invoke doset Macro for Sets in acs2013, creating acs2013.datasets"; %global todolist; %*et todolist=ussldu12s5yr ussldl12s5yr ; %*let todolist=usmcdcprofiles3yr usmcdcprofiles5yr; %*let todolist=allgeos2008_2013; *<========================================================; %*let todolist=usmcdcprofiles_2006_20131yr usmcdcprofiles_2006_20133yr uscdslds5yr ; %*let todolist=ustractsh5yr; %*let todolist=usmcdcprofilesalt usmcdcprofiles3yr usmcdcprofiles3yralt; *----running 10-25-14---; %let todolist=usmcdcprofiles usmcdcprofilesalt usmcdcprofiles3yr usmcdcprofiles3yralt usmcdcprofiles5yr usmcdcprofiles5yralt; *----running 02-26-15---; %let todolist=usmcdcprofilesalt usmcdcprofiles3yralt usmcdcprofiles5yralt; *<==========10-15-15========NOTE=================; %let libnameG=acs2013; libname acs2013 '/pub/data/acs2013'; /*<=========================Comment out===================================== *-----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=acs2013,debug=1); ===========================End commented out================================ */ *----------------------------------------------------------------------; %doset( memname=usmcdcprofiles , memlabel=%str(Single year 2013 summaries for all areas with pop of at least 65000), libname =acs2013, urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=18), units=us state county place puma cd etc, years=2013, universe=United States, sortprio=1, keyvars=sumlev state county placefp geocomp cbsa cbsatype, keyfmats=sumlev state county place geocomp cbsa |, keyquals= | | | state, Description = %nrbquote(Data for all large US geographies, 2013 1-year Period Estimates), UsageNotes=%nrbquote(), debug=0); %doset( memname=usmcdcprofilesalt , memlabel=%str(Single year 2013 summaries for all areas with pop of at least 65000), libname =acs2013, urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=18), units=us state county place puma cd etc, years=2013, universe=United States, sortprio=1, keyvars=sumlev state county placefp geocomp cbsa cbsatype, keyfmats=sumlev state county place geocomp cbsa |, keyquals= | | | state, Description = %nrbquote(Data for all large US geographies, 2013 1-year Period Estimates), UsageNotes=%nrbquote(), debug=0); %doset( memname=usmcdcprofiles3yralt,memlabel=%str(2011-2013 3-year summaries for all areas with pop of at least 20000), libname =acs2013, urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=22), units=us state county place puma cd etc, years=%str(2011-2013), universe=United States, sortprio=1, keyvars=sumlev state county placefp geocomp cbsa, keyfmats=sumlev state county place geocomp cbsa, keyquals= | | | state, Description = %nrbquote(Data for all large and medium US geographies, 2011-2013 3-year Period Estimates), UsageNotes=%nrbquote(), debug=0); %doset( memname=usmcdcprofiles3yr,memlabel=%str(2011-2013 3-year summaries for all areas with pop of at least 20000), libname =acs2013, urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=22), units=us state county place puma cd etc, years=%str(2011-2013), universe=United States, sortprio=1, keyvars=sumlev state county placefp geocomp cbsa, keyfmats=sumlev state county place geocomp cbsa, keyquals= | | | state, Description = %nrbquote(Data for all large and medium US geographies, 2010-2013 3-year Period Estimates), UsageNotes=%nrbquote(), debug=0); %doset( memname=allgeos2009_2013, libname =acs2013, units=us state county place puma zcta cbsa cd tract etc, years=%str(2009-2013), universe=United States, createpgm=cnvt_geofiles5, sortprio=5, keyvars=sumlev state county placefp geocomp cbsa, keyfmats=sumlev state county place geocomp cbsa, keyquals= | | | state, Description = %nrbquote(Geography-only data for all US geographies, regardless of pop size, 5-year Period Estimates), UsageNotes=%nrbquote(), debug=0); %doset( memname=usmcdcprofiles5yr,memlabel=%str(2009-2013 5-year summaries for all areas), libname =acs2013, units=us state county place puma zcta cbsa cd tract bg etc, years=%str(2009-2013), universe=United States, createpgm=process_mcdcprofiles5yr, sortprio=1, keyvars=sumlev state county placefp geocomp cbsa, keyfmats=sumlev state county place geocomp cbsa, keyquals= | | | state, Description = %nrbquote(Data for all US geographies above tract, regardless of pop size, 5-year Period Estimates), UsageNotes=%nrbquote(), urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=23), debug=0); %doset( memname=usmcdcprofiles5yralt, Memlabel = %nrbquote(From usmcdcprofiles5yr MOE vars moved to the end, no tracts or bgs) , libname=acs2013, units=us state county place puma cd zcta cbsa etc, years=%str(2009-2013), universe=United States, CreatePgm=mcdcprofiles5yr, sortprio=1, keyvars=sumlev state county placefp geocomp cbsa, keyfmats=sumlev state county place geocomp cbsa, keyquals= | | | state, Description = %nrbquote(Alternate version of usmcdcprofiles5yr but with all MOE variables moved to the end of the observations), UsageNotes=%nrbquote(), urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=23), debug=0); %doset( memname=usgeocomps5yr,memlabel=%str(Period Estimates (2009-2013 5-year) for all US Geographic Components), libname=acs2013, CreatePgm=mcdcprofiles5yr, units=str(us state region division etc/geocomp), years=%str(2009-2013), universe=United States, keyvars=sumlev state geocomp, keyfmats=sumlev state geocomp, keyquals=%str( | | | ) , Description = %nrbquote(Data for all US geographic components, such as urban and rural portions, 5-year Period Estimates), UsageNotes=%nrbquote(), urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=23), debug=0); %doset( memname=usregdiv5yr, libname=acs2013,urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=23), CreatePgm=mcdcprofiles5yr, units=str(us region division), years=%str(2009-2013), universe=United States, keyvars=sumlev , keyfmats=sumlev, Description = %nrbquote(Data for US (nation totals), Regions, and Division), UsageNotes=%nrbquote(), debug=0); %doset( memname=usstcnty5yr, libname=acs2013,urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=23), units=State County, CreatePgm=mcdcprofiles5yr, years=%str(2009-2013), universe=United States, keyvars=sumlev state county cbsa csa metdiv, keyfmats=sumlev state county cbsa csa metdiv, Description = %nrbquote(Period Estimates (2009-2013 5-year) for all States, Counties and Equivalents), UsageNotes=%nrbquote(), debug=0); %doset( memname=usplaces5yr,memlabel=, libname=acs2013,urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=23), CreatePgm=mcdcprofiles5yr, units=%str(place and place/county), years=%str(2009-2013), universe=United States, keyvars=sumlev state county placefp, keyfmats=sumlev state county place, keyquals=%str(| | | state), Description = %nrbquote(Period Estimates (2009-2013 5-year) for all US Cities), UsageNotes=%nrbquote(), debug=0); %doset( memname=uscousubs5yr,memlabel=, libname=acs2013,urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=23), CreatePgm=mcdcprofiles5yr, units=%str(mcds (county subdivisions)), years=%str(2009-2013), universe=United States, keyvars=state county lsadc, keyfmats=state county lsadc, Description = %nrbquote(Period Estimates (2009-2013 5-year) for all US County Subdivisions), UsageNotes=%nrbquote(), debug=0); %doset( memname=usschools5yr,memlabel=, libname=acs2013,urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=23), CreatePgm=mcdcprofiles5yr, units=%str(School District), years=%str(2009-2013), universe=United States, keyvars=sumlev state, keyfmats=sumlev state, Description = %nrbquote(Period Estimates (2009-2013 5-year) for all US School Districts), UsageNotes=%nrbquote(), debug=0); %doset( memname=uspumas5yr,memlabel=, libname=acs2013,urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=23), CreatePgm=mcdcprofiles5yr, units=%str(2010 PUMAs), years=%str(2009-2013), universe=United States, keyvars=state, keyfmats=state, Description = %nrbquote(Period Estimates (2009-2013 5-year) for all US Public Use Microdata Areas), UsageNotes=%nrbquote(), debug=0); %doset( memname=usurbareas5yr,memlabel=, libname=acs2013,urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=23), CreatePgm=mcdcprofiles5yr, units=%str(2002 Urban Areas), years=%str(2009-2013), universe=United States, keyvars=, keyfmats=, Description = %nrbquote(Period Estimates (2009-2013 5-year) for all US Urban Clusters and Urbanized Areas), UsageNotes=%nrbquote(), debug=0); %doset( memname=usmetros5yr,memlabel=, libname=acs2013,urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=23), CreatePgm=mcdcprofiles5yr, units=%str(2010 Metro Areas), years=%str(2009-2013), universe=United States, keyvars=sumlev cbsa csa metdiv state, keyfmats=sumlev cbsa csa metrodiv state, Description = %nrbquote(Period Estimates (2009-2013 5-year) for all US CBSAs, CSAs, Metro Divs and New England Metro Areas), UsageNotes=%nrbquote(), debug=0); %doset( memname=uszctas5yr,memlabel=, CreatePgm=mcdcprofiles5yr, units=%str(ZCTAs), years=%str(2009-2013), universe=United States, keyvars=state, keyfmats=state, Description = %nrbquote(Period Estimates (2009-2013 5-year) for all US ZCTAs,), UsageNotes=%nrbquote(), urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=23), debug=0); run; %doset( memname=usamindianetc5yr,memlabel=, libname=acs2013,urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=23), CreatePgm=mcdcprofiles5yr, units=%str(American Indian Resevations etc), years=%str(2009-2013), universe=United States, keyvars=sumlev state, keyfmats=sumlev state, Description = %nrbquote(Period Estimates (2009-2013 5-year) for all US American Indian Reservations and Similar Areas), UsageNotes=%nrbquote(), debug=0); %doset( memname=ustracts5yr,memlabel=, libname=acs2013,urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=23), CreatePgm=mcdcprofiles5yr, units=%str(2010 census tract), years=%str(2009-2013), universe=United States, keyvars=sumlev state county cbsa, keyfmats=sumlev state county cbsa, Description = %nrbquote(Period Estimates (2009-2013 5-year) for all US Census Tracts), UsageNotes=%nrbquote(), debug=0); %doset( memname=usbgs5yr,memlabel=, libname=acs2013,urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=23), CreatePgm=usbgprofiles, units=%str(2010 Block Groups), years=%str(2009-2013), universe=United States, keyvars=state county, keyfmats=state county, Description = %nrbquote(Period Estimates (2009-2013 5-year) for all US block groups), UsageNotes=%nrbquote(), debug=0); %doset( libname=acs2013,urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=23), memname=uscdslds5yr,memlabel=%bquote(Latest CD and State Leg District level summaries),sortprio=3, CreatePgm=mcdcprofiles5yr, units=%str(2013 SLDs, 113th CDs), years=%str(2009-2013), universe=United States, keyvars=sumlev state, keyfmats=sumlev state, sortedby=state, Description = %nrbquote(In the 2011 cycle we had to estimate data for these units. Now they are official data), UsageNotes=%nrbquote(), debug=0); run; run; /*<=========================Comment out===================================== *----Custom data step to modify the sortprio values--------*; data acs2013.datasets; set acs2013.datasets_old; if memname=:'usmcdcprofiles' then sortprio=1; else if memname=:'us' and substr(memname,length(memname)-2,3)='5yr' then sortprio=3; else if memname='usbgs5yrtemp' then sortprio=4; else if memname=:'mo' then sortprio=5; else if memname=:'allgeos' then sortprio=6; else if units ne ' ' then sortprio=7; else sortprio=9; run cancel; %doset( memname=usmcdcprofiles_2006_20131yr,memlabel=, libname =acs2013, createPgm=create_usmcdcprofiles_since2006, sortedby=geoid years, urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=23), units=us state county place puma cd etc, years=%str(2006 thru 2013), universe=United States, sortprio=1, keyvars=years sumlev state county placefp geocomp cbsa vintage, keyfmats= | sumlev state county place geocomp cbsa, keyquals= | | | | state, Description = %nrbquote(Data for all large US geographies (65K+), all single-year Estimates since 2006), UsageNotes=%nrbquote(), debug=0); %doset( memname=usmcdcprofiles_2006_20133yr,memlabel=, libname =acs2013, createPgm=create_usmcdcprofiles_since2006, sortedby=geoid years, urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=19), units=us state county place puma cd etc, years=%str(2006-2008 2007-2009 .. 2010-2013), universe=United States, sortprio=1, keyvars=years sumlev state county placefp geocomp cbsa vintage, keyfmats= | sumlev state county place geocomp cbsa, keyquals= | | | | state, Description = %nrbquote(Data for all large and medium US geographies, all available 3-year Period Estimates starting with 2005-2007 and going to 2010-2013), UsageNotes=%nrbquote(), debug=0); ===========================End commented out================================ */ proc datasets library=acs2013 nolist; modify datasets; index delete dataset memname; index create dataset=(libname memname) / unique; index create memname; quit; options mprint msglevel=i; %gendshtm(libname=acs2013,debug=1,runprocc=1);