x cd /pub/data/acs/Tools; %let pgm=invoke_dosets; filename pgm "&pgm..sas";
/*--Invoke the %doset macro to create observations in the Datasets dataset for this directory.
(there is little to document in this directory since most of the actual acs data gets stored in
the acs vintage directories acs2006 thru acs20XX ).
J. Blodgett, OSEDA, May, 2015
-- */
title "Job to Invoke doset Macro for Sets in acs Data Directory";
%global todolist;
%let todolist=;
%let libnameG=acs;
libname acs '/pub/data/acs';
%let latestyear=2015;
/*<=========================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=acs,debug=1);
===========================End commented out================================ */
*----------------------------------------------------------------------;
%doset(
memname=usmcdcprofiles2006_2015,
libname =acs,
createpgm=create_usmcdcprofiles_since2006,
urlmeta=%str(https://mcdc.missouri.edu/applications/acs/profiles/variables.php?p=18),
units=us state county place puma cd etc,
years=%str(2006 to &latestyear),
universe=United States,
sortprio=1,
keyvars=year sumlev state county placefp geocomp cbsa cbsatype cbsayr,
keyfmats=| sumlev state county place geocomp cbsa | |,
keyquals=| | | | state,
Description = %nrbquote(Time Series Data for all large US geographies. 2006 thru &latestyear 1-year Period Estimates),
UsageNotes=%nrbquote(
- When we have data for a later year we plan to add that data and change the name to reflect the latest year
- "Large" means a minimum of approximately 65,000 population.
- Contains both estimates and MOE (margin of error) values. Some variables may be missing - suppressed.
- A companion dataset with same name with _nomoes appeneded is same data but with all _moe variables dropped.
- Margin of error variable names are the same as the estimate names but with "_moe" appended.
- The variables included in this data set are very similar to those included in the Census Bureau dp01 thru dp04 profiles.
They are identical to the variables that appear in the MCDCs ACS Profile reports.
- Many of the variable derivation formulas have been modified over time to avoid missing values as much as
possible. Note that the MOE values in later years had to be estimated with formulas correpsponding to their derivation.
These will generally not match exactly with values published by the Bureau.
- Some geographic entities (Congressional Districts, PUMAs and CBSAs, for example) change their defns over time.
- PUMAs are vintage 2000 for years 2006 thru 2011, with 2010 PUMAs used for 2012 and later. Congressional districts are IDed in the
Areaname. CBSA vintage definitions are identified in the CBSAyr variable.
- There is a lot less data for 2006 (4663 areas summarized vs 7801 for 2013). See
Table of SumLev by Year.
- Watch out for geographic component summaries.
- If you just want the data for the latest year (2015) access the usmcdcprofiles dataset in the acs2015 data directory.
),
debug=0);
%doset(
memname=usmcdcprofiles2006_2015_nomoes,template=usmcdcprofiles2006_2015,
libname =acs,
Memlabel = %nrbquote(The exact same data as usmcdcprofiles2006_2015 but with all the margin-of-error variables removed.)
);
%*doset(
memname=detailedtabs5yr,
libname =acs,
createpgm=detailed_tables_5yr,
units=table,
sortprio=8,
Description = %nrbquote(Metadata describing detailed (base, summary) tables vintage 2009),
UsageNotes=%nrbquote(
- Of historic historic interest only
),
debug=0);
proc datasets library=acs nolist;
modify datasets;
index delete dataset memname;
index create dataset=(libname memname) / unique;
index create memname;
quit;
options mprint;
%gendshtm(libname=acs,debug=0,runprocc=1);