x cd /pub/data/dhc2020/Tools; %let pgm=invoke_dosets; filename pgm "&pgm..sas";
/* Invoke the %doset macro to create observations in the Datasets dataset for this directory. */
title "Job to invoke doset macro for sets in dhc2020, creating dhc2020.datasets";
options notes nosource nosource2 symbolgen mprint;
%include '/pub/sas/autoexec.sas';
libname dhc2020 '/pub/data/dhc2020';
%let libnameg = dhc2020;
%let todo=;
%let todolist=;
%*let todo=usplaces usplaces160 usplaces10k; *<======= NOTE ;
%*let todo=&stab.inventory;
/* Run this step ONLY ONCE. If you need to rerun (start over),
delete the datasets dataset first. doset will not allow initialize
mode if the datasets set already exists. */
%*doset(mode=initialize, libname=dhc2020, debug=1);
%macro doit(state,stab);
%doset(
mode=,
libname=dhc2020,
memname=&stab.blocks,
geouniv=&statenm,
units=%str(census block),
Years=2020,
CreatePgm=DHC_master,
Keywords=2020 census detailed tables blocks,
Description=%nrbquote(Detailed tables for &statenm census blocks),
keyvars=county placefp cousubfp cbsa metrodiv,
keyfmats=county &stab.place &stab.mcd cbsa metrodiv,
keyquals=%str(| state county ),
DataSource=%str(U.S. Bureau of the Census),
SortedBy=county cousubfp placefp tract bg block,
UsageNotes=%nrbquote(
- This is one of a set of seven data sets created for &statenm.. This is the only set with block-level data (SumLev=100/101).
- This data set is several times larger than all the other data sets for this state combined. Avoid downloading an entire state.
- Data set includes only P and H tables. There are no PCT or HCT tables at the block level.
- Naming convention for table items is the MCDC table-naming standard:
[TableId]i[cell#], where TableID is the table ID and cell# is the cell or line number within the table, e.g. p7i5 is the fifth cell in table P7.
- See the PHlabels.txt file for variable detail.
),
SubType=block,
SetGroup=&stab,
VarSet=variablesph,
URLMeta=%str(https://www2.census.gov/programs-surveys/decennial/2020/technical-documentation/complete-tech-docs/demographic-and-housing-characteristics-file-and-demographic-profile/2020census-demographic-and-housing-characteristics-file-and-demographic-profile-techdoc.pdf),
debug=0
);
%doset(
mode=,
libname=dhc2020,
memname=&stab.bgs090,
geouniv=&statenm,
units=%str(BG split by county sub place and urban/rural),
Years=2020,
CreatePgm=DHC_master,
Keywords=2020 census detailed tables hierarchal block groups,
Description=%nrbquote(Detailed tables for &statenm split block groups),
keyvars=county placefp cousubfp cbsa metrodiv,
keyfmats=county &stab.place &stab.mcd cbsa metrodiv,
keyquals=%str(| state county ),
DataSource=%str(U.S. Bureau of the Census),
SortedBy=county cousubfp placefp tract bg,
UsageNotes=%nrbquote(
- This is one of a set of seven data sets created for &statenm.. This is the only set with this block-group level data (SumLev=090). See the &stab.bgs150 data set for data complete BG data summaries.
- Data set has only P and H tables. There are no PCT or HCT tables at this small level.
- Naming convention for table items is the MCDC table-naming standard:
[TableId]i[cell#], where TableID is the table ID and cell# is the cell or line number within the table, e.g. p7i5 is the fifth cell in table P7.
- See PHlabels.txt file for variable detail.
),
SubType=bgs090,
SetGroup=&stab,
VarSet=variablesph,
URLMeta=%str(https://www2.census.gov/programs-surveys/decennial/2020/technical-documentation/complete-tech-docs/demographic-and-housing-characteristics-file-and-demographic-profile/2020census-demographic-and-housing-characteristics-file-and-demographic-profile-techdoc.pdf),
debug=0);
%doset(
mode=,
libname=dhc2020,
memname=&stab.bgs150,
geouniv=&statenm,
units=%str(block groups),
Years=2020,
CreatePgm=DHC_master,
Keywords=2020 census detailed tables complete block groups,
Description=%nrbquote(Detailed tables for &statenm Block Groups),
keyvars=county cbsa metrodiv,
keyfmats=county cbsa metrodiv,
keyquals=%str(| | | ),
DataSource=%str(U.S. Bureau of the Census),
SortedBy=county tract bg,
UsageNotes=%nrbquote(
- This is one of a set of seven data sets created for &statenm.. This is the only set with this block-group level data (SumLev=150). See the &stab.bgs091 data set for split BG data summaries.
- PlaceFP and CouSubFP are blank on these summaries since complete BGs do not nest within those levels.
- Data set has only P and H tables. There are no PCT or HCT tables at this small level.
- Naming convention for table items is the MCDC table-naming standard:
[TableId]i[cell#], where TableID is the table ID and cell# is the cell or line number within the table, e.g. p7i5 is the fifth cell in table P7.
- See PHlabels.txt file for variable detail.
),
SubType=bgs150,
SetGroup=&stab,
VarSet=variablesph,
URLMeta=%str(https://www2.census.gov/programs-surveys/decennial/2020/technical-documentation/complete-tech-docs/demographic-and-housing-characteristics-file-and-demographic-profile/2020census-demographic-and-housing-characteristics-file-and-demographic-profile-techdoc.pdf),
debug=0
);
%doset(
mode=,
libname=dhc2020,
memname=&stab.hierarchal,
geouniv=&statenm,
units=%str(many hierarchal levels),
Years=2020,
CreatePgm=DHC_master,
Keywords=2020 census detailed tables hierarchal levels,
Description=%nrbquote(Detailed P, H, PCT and HCT tables for &statenm hierarchal summary levels),
keyvars= sumlev state county placefp cousubfp cbsa metrodiv,
keyfmats=sumlev state county &stab.place &stab.mcd cbsa metrodiv,
keyquals=%str(| | | state county ),
DataSource=%str(U.S. Bureau of the Census),
SortedBy=LogRecNo,
UsageNotes=%nrbquote(
- This is one of a set of seven data sets created for &statenm.. It contains a wide variety of geographic summary levels that we categorized as hierarchal, meaning that is is a level formed by combining two or more basic levels. E.g., a summary for place within county subdivision (SumLev=070) is found on this hierarchal set, while summaries for complete places (SumLev=160) and country subdivisions (SumLev=060) will be found on the &stab.inventory data set.
- This data set has P, H, PCT, and HCT tables, excluding those PCT and HCT tables that have letter suffixes to indicate a race/ethnic subuniverse (these can be found on the &stab.phctr data set). The PCO tables, available for only a few geographic levels, are also omitted from this data set.
- Naming convention for table items is the MCDC table-naming standard:
[TableId]i[cell#], where TableID is the table ID and cell# is the cell or line number within the table, e.g. p7i5 is the fifth cell in table P7.
- See the PHlabels.txt and PHCTlabels.txt files for variable detail.
),
SubType=hierarchal,
SetGroup=&stab,
VarSet=variables,
URLMeta=%str(https://www2.census.gov/programs-surveys/decennial/2020/technical-documentation/complete-tech-docs/demographic-and-housing-characteristics-file-and-demographic-profile/2020census-demographic-and-housing-characteristics-file-and-demographic-profile-techdoc.pdf),
debug=0
);
%doset(
mode=,
libname=dhc2020,
memname=&stab.inventory,
geouniv=&statenm,
units=%str(many inventory levels, such as state, county, place, and tract),
Years=2020,
CreatePgm=DHC_master,
Keywords=2020 census detailed tables inventory summary levels,
Description=%nrbquote(Detailed P, H, PCT, and HCT tables for &statenm inventory summary levels),
keyvars= sumlev geocomp state county placefp cousubfp cbsa metrodiv,
keyfmats=sumlev geocomp state county &stab.place &stab.mcd cbsa metrodiv,
keyquals=%str(| | | state county ),
DataSource=%str(U.S. Bureau of the Census),
SortedBy=LogRecNo,
UsageNotes=%nrbquote(
- This is one of a set of seven data sets created for &statenm.. It contains a wide variety of geographic summary levels that we categorized as inventory. See the values of key variable SumLev to see what these are.
- Watch out for geographic component summaries. They are present on state, county, place, and county subdivision level summaries.
- This is probably the most useful of the seven data sets. Here is where you get summary data for all states, counties, cities, metro areas, ZCTAs, census tracts, school districts, etc. within the universe.
- This data set has P, H, PCT, and HCT tables, excluding those PCT and HCT tables that have letter suffixes to indicate a race/ethnic subuniverse (these can be found on the &stab.phctr data set). The PCO tables, available for only a few geographic levels, are also omitted from this data set.
- Naming convention for table items is the MCDC table-naming standard:
[TableId]i[cell#], where TableID is the table ID and cell# is the cell or line number within the table, e.g. pct7i5 is the fifth cell in table PCT7.
- See the PHlabels.txt and PHCTlabels.txt files for variable detail.
),
SubType=inventory,
SetGroup=&stab,
VarSet=variables,
URLMeta=%str(https://www2.census.gov/programs-surveys/decennial/2020/technical-documentation/complete-tech-docs/demographic-and-housing-characteristics-file-and-demographic-profile/2020census-demographic-and-housing-characteristics-file-and-demographic-profile-techdoc.pdf),
debug=0
);
%doset(
mode=,
libname=dhc2020,
memname=&stab.phctr,
geouniv=&statenm,
units=%str(all units census tract and larger),
Years=2020,
CreatePgm=DHC_master,
Keywords=2020 census detailed CT tables with letter suffixes,
Description=%nrbquote(PCT tables with letter suffixes for all &statenm summary levels tract and larger),
keyvars= sumlev state county placefp cousubfp cbsa metrodiv,
keyfmats=sumlev state county &stab.place &stab.mcd cbsa metrodiv,
keyquals=%str(| | | state county ),
DataSource=%str(U.S. Bureau of the Census),
SortedBy=LogRecNo,
UsageNotes=%nrbquote(
- This is one of a set of seven data sets created for &statenm.. This is the only one of the seven that contains these tables. They are PCT tables that are repeated for race and ethnic groups (e.g., PCT9A through PCT9I).
- There are no HCT tables with letter suffixes.
- Geographically, this set has the same areas summarized as the combination of &stab.inventory and &stab.hierarchal.
- Note that simple P and H tables with letter suffixes are not included here (e.g., table P12A is not found here).
- You can merge this data set with either &stab.inventory or &stab.hierarchal using LogRecNo as the merge (join) key.
- Naming convention for table items is the MCDC table-naming standard:
[TableId]i[cell#], where TableID is the table ID and cell# is the cell or line number within the table, e.g. p12Ai15 is the 15th cell in table P12A.
- See the PHCTRlabels.txt file for variable detail.
),
SubType=phctr,
SetGroup=&stab,
VarSet=variablesphctr,
URLMeta=%str(https://www2.census.gov/programs-surveys/decennial/2020/technical-documentation/complete-tech-docs/demographic-and-housing-characteristics-file-and-demographic-profile/2020census-demographic-and-housing-characteristics-file-and-demographic-profile-techdoc.pdf),
debug=0
);
%doset(
mode=,
libname=dhc2020,
memname=&stab.pcos,
geouniv=&statenm,
units=%str(state county cbsa csa cd slds),
Years=2020,
CreatePgm=DHC_master,
Keywords=2020 census detailed CT tables with letter suffixes,
Description=%nrbquote(Special PCO tables with group quarters detail for higher-level geographic areas),
keyvars= sumlev state county cbsa csa,
keyfmats=sumlev state county cbsa csa,
keyquals=,
DataSource=%str(U.S. Bureau of the Census),
SortedBy=LogRecNo,
UsageNotes=%nrbquote(
- This is one of a set of seven data sets created for &statenm.. This is the only one of the seven that contains these PCO tables with detailed breakdowns of the population living in group quarters.
- Geographically, this set has a very limited set of higher level geographic areas. It includes summaries for state legislative districts (as defined in 2018).
- You can merge this data set with either &stab.inventory or &stab.hierarchal using LogRecNo as the merge (join) key, but only a small number of the observations on those two larger data sets will be matched on this set.
- Naming convention for table items is the MCDC table-naming standard:
[TableId]i[cell#], where TableID is the table ID and cell# is the cell or line number within the table, e.g. pco2i3 is the third cell in table PCO2.
- See the PCOlabels.txt file for variable detail.
),
SubType=pco,
SetGroup=&stab,
VarSet=variablespco,
URLMeta=%str(https://www2.census.gov/programs-surveys/decennial/2020/technical-documentation/complete-tech-docs/demographic-and-housing-characteristics-file-and-demographic-profile/2020census-demographic-and-housing-characteristics-file-and-demographic-profile-techdoc.pdf),
debug=0
);
%mend doit;
/* ========================begin comment====================================
%dostates(01 15,names=1) ;
%dostates(06 10 20 42 56,names=1) ;
%dostates(02 08 09 31 37,names=1);
%dostates(04 27 30 36 40 50,names=1);
%dostates(13 21 23 33 72 51,names=1);
%dostates(16 29 39 49 54 55,names=1);
%dostates(17 18 32 41 46 53,names=1);
%dostates(05 22 19 34 48,names=1);
%dostates(11 12 25 26 45,names=1);
%dostates(28 35 38 44 47,names=1)
%dostates(24,names=1)
%dostates(n=52,names=1) ;
==========================end comment====================================== */
/* Now do the national sets -- there's only one of each, so we don't use %dostates. */
/*
%doset(
mode=,
libname=dhc2020,
memname=uscounties,
memlabel=,
geouniv=United States,
units=%str(County),
sortprio=3,
Years=2020,
CreatePgm=DHC_master,
Keywords=2020 census detailed tables state and county national,
Description=%nrbquote(Detailed P, H, PCT, and HCT tables, county level-summaries for entire US),
keyvars= sumlev state county cbsa metrodiv,
keyfmats=sumlev state county cbsa metrodiv,
keyquals=%str(| | | | |),
DataSource=%str(U.S. Bureau of the Census),
SortedBy=state county,
UsageNotes=%nrbquote(
- This data set has P, H, PCT, and HCT tables, excluding those PCT and HCT tables that have letter suffixes to indicate a race/ethnic subuniverse (these can be found on the usphctr data set). The PCO tables, available for only a few geographic levels, are also omitted from this data set.
- Naming convention for table items is the MCDC table-naming standard:
[TableId]i[cell#], where TableID is the table ID and cell# is the cell or line number within the table, e.g. p7i5 is the fifth cell in table P7.
- See the PHlabels.txt and
PHCTlabels.txt files for variable detail.
),
SubType=inventory,
SetGroup=us,
VarSet=variables,
URLMeta=%str(https://www2.census.gov/programs-surveys/decennial/2020/technical-documentation/complete-tech-docs/demographic-and-housing-characteristics-file-and-demographic-profile/2020census-demographic-and-housing-characteristics-file-and-demographic-profile-techdoc.pdf),
debug=0
);
%doset(
mode=,
libname=dhc2020,
memname=usuas,
memlabel=,
geouniv=United States,
units=%str(Urban Areas),
sortprio=3,
Years=2020,
CreatePgm=DHC_master,
Keywords=2020 census detailed tables for urban areas ,
Description=%nrbquote(Detailed P, H, PCT, and HCT tables, for complete urban areas and
state and county portions thereof for entire US),
keyvars= sumlev ua uatype state county,
keyfmats=sumlev uaname | state county,
keyquals=%str(| | | | |),
DataSource=%str(U.S. Bureau of the Census),
SortedBy=,
UsageNotes=%nrbquote(
- This data set has P, H, PCT, and HCT tables, excluding those PCT and HCT tables that have letter suffixes to indicate a race/ethnic subuniverse (these can be found on the usphctr data set). The PCO tables, available for only a few geographic levels, are also omitted from this data set.
- Naming convention for table items is the MCDC table-naming standard:
[TableId]i[cell#], where TableID is the table ID and cell# is the cell or line number within the table, e.g. p7i5 is the fifth cell in table P7.
- See the PHlabels.txt and PHCTlabels.txt files for variable detail.
),
SubType=inventory,
SetGroup=us,
VarSet=variables,
URLMeta=%str(https://www2.census.gov/programs-surveys/decennial/2020/technical-documentation/complete-tech-docs/demographic-and-housing-characteristics-file-and-demographic-profile/2020census-demographic-and-housing-characteristics-file-and-demographic-profile-techdoc.pdf),
debug=0
);
%doset(
mode=,
libname=dhc2020,
memname=usplaces,
memlabel=,
geouniv=United States,
units=%str(State County),
sortprio=3,
Years=2020,
CreatePgm=DHC_master,
Keywords=2020 census detailed tables place national,
Description=%nrbquote(Detailed P, H, PCT, and HCT tables, place (city) -level summaries for entire US),
keyvars=state,
keyfmats=state,
DataSource=%str(U.S. Bureau of the Census),
SortedBy=state placefp,
UsageNotes=%nrbquote(
- This data set has P, H, PCT, and HCT tables, excluding those PCT and HCT tables that have letter suffixes to indicate a race/ethnic subuniverse (these can be found on the usphctr data set). The PCO tables, available for only a few geographic levels, are also omitted from this data set.
- Naming convention for table items is the MCDC table-naming standard:
[TableId]i[cell#], where TableID is the table ID and cell# is the cell or line number within the table, e.g. p7i5 is the fifth cell in table P7.
- Contains only summary level 160 summaries for complete place (does NOT contain level 155 summaries).
- See the PHlabels.txt and PHCTlabels.txt files for variable detail.
),
SubType=inventory,
SetGroup=us,
VarSet=variables,
URLMeta=%str(https://www2.census.gov/programs-surveys/decennial/2020/technical-documentation/complete-tech-docs/demographic-and-housing-characteristics-file-and-demographic-profile/2020census-demographic-and-housing-characteristics-file-and-demographic-profile-techdoc.pdf),
debug=0
);
%doset(
mode=,
libname=dhc2020,
memname=usregdivstates,
memlabel=,
geouniv=United States,
units=%str(Nation Region Division State),
sortprio=3,
Years=2020,
CreatePgm=DHC_master,
Description=%nrbquote(Detailed P, H, PCT, PCTr, and HCT tables for US),
keyvars=sumlev,
keyfmats=sumlev,
DataSource=%str(U.S. Bureau of the Census),
SortedBy=sumlev region division,
UsageNotes=%nrbquote(
- Naming convention for table items is the MCDC table-naming standard:
[TableId]i[cell#], where TableID is the table ID and cell# is the cell or line number within the table, e.g. p7i5 is the fifth cell in table P7.
- See the PHlabels.txt, PHCTRlabels.txt, and PHCTlabels.txt files for variable detail.
),
SubType=inventory,
SetGroup=us,
VarSet=variables,
URLMeta=%str(https://www2.census.gov/programs-surveys/decennial/2020/technical-documentation/complete-tech-docs/demographic-and-housing-characteristics-file-and-demographic-profile/2020census-demographic-and-housing-characteristics-file-and-demographic-profile-techdoc.pdf),
debug=0
);
%doset(
mode=,
libname=dhc2020,
memname=usamindianetc,
memlabel=,
geouniv=United States,
units=%str(American Indian and Alaska Native Areas),
sortprio=3,
Years=2020,
CreatePgm=DHC_master,
Description=%nrbquote(Detailed P(CT) and H(CT) tables for a myriad of tribal units),
keyvars=sumlev state lsadc,
keyfmats=sumlev state lsadc,
UsageNotes=%nrbquote(
- Lots of hierarchal summaries of sub-parts of tribal areas. Areaname pertains to the last geo in the hierarchy.
- Does not include suffix-modified PCT[r] tables such as tables PCT12A through PCT12I, which are on the usphctr dataset.
- Naming convention for table items is the MCDC table-naming standard:
[TableId]i[cell#], where TableID is the table ID and cell# is the cell or line number within the table, e.g. p7i5 is the fifth cell in table P7.
- There are no geographic components of these areas, i.e. geocomp is always 00.
- See the PHlabels.txt, PHCTlabels.txt files for variable detail.
),
SubType=phct,
SetGroup=us,
VarSet=variables,
URLMeta=%str(https://www2.census.gov/programs-surveys/decennial/2020/technical-documentation/complete-tech-docs/demographic-and-housing-characteristics-file-and-demographic-profile/2020census-demographic-and-housing-characteristics-file-and-demographic-profile-techdoc.pdf),
debug=0
);
%doset(
mode=,
libname=dhc2020,
memname=uscdslds,
memlabel=,
geouniv=United States,
units=%str(116th Congressional Districts and 2018 State Legislative Districts),
sortprio=3,
Years=2020,
CreatePgm=DHC_master,
Description=%nrbquote(Detailed P(CT) and H(CT) tables for Congressional Districts and State Legislative Districts),
keyvars=sumlev state,
keyfmats=sumlev state,
UsageNotes=%nrbquote(
- These are the 111th congressional districts corr to those elected in 2008.
- Does not include suffix-modified PCT[r] tables such as tables PCT12A through PCT12I, which are on the usphctr dataset.
- Naming convention for table items is the MCDC table-naming standard:
[TableId]i[cell#], where TableID is the table ID and cell# is the cell or line number within the table, e.g. p7i5 is the fifth cell in table P7.
- See the PHlabels.txt,
PHCTlabels.txt files for variable detail.
),
SubType=phct,
SetGroup=us,
VarSet=variables,
URLMeta=%str(https://www2.census.gov/programs-surveys/decennial/2020/technical-documentation/complete-tech-docs/demographic-and-housing-characteristics-file-and-demographic-profile/2020census-demographic-and-housing-characteristics-file-and-demographic-profile-techdoc.pdf),
debug=0
);
%doset(
mode=,
libname=dhc2020,
memname=uscousubs,
memlabel=,
geouniv=United States,
units=%str(County Subdivisions),
sortprio=3,
Years=2020,
CreatePgm=DHC_master,
Description=%nrbquote(Detailed P(CT) and H(CT) tables for US County Subdivisions),
keyvars= sumlev state county cbsa csa metrodiv lsadc,
keyfmats=sumlev state county cbsa csa metdiv lsadc,
UsageNotes=%nrbquote(
- These areas vary by state as to what they are called. Towns and townships, mostly, also known as MCDs or minor civil divisions.
- Does not include suffix-modified PCT[r] tables such as tables PCT12A through PCT12I, which are on the usphctr dataset.
- Naming convention for table items is the MCDC table-naming standard:
[TableId]i[cell#], where TableID is the table ID and cell# is the cell or line number within the table, e.g. p7i5 is the fifth cell in table P7.
- See the PHlabels.txt, PHCTlabels.txt files for variable detail.
),
SubType=phct,
SetGroup=us,
VarSet=variables,
URLMeta=%str(https://www2.census.gov/programs-surveys/decennial/2020/technical-documentation/complete-tech-docs/demographic-and-housing-characteristics-file-and-demographic-profile/2020census-demographic-and-housing-characteristics-file-and-demographic-profile-techdoc.pdf),
debug=0
);
%doset(mode=,
libname=dhc2020,
memname=usmetros,
memlabel=,
geouniv=United States,
units=%str(cbsas csas metrodivs etc),
sortprio=3,
Years=2020,
CreatePgm=DHC_master,
Description=%nrbquote(Detailed P(CT) and H(CT) tables for various metro area geographic entities),
keyvars=sumlev geocomp state county cbsa csa metrodiv lsadc,
keyfmats=sumlev geocomp state county cbsa csa metdiv lsadc,
UsageNotes=%nrbquote(
- Includes Core Based Statistical Areas (CBSAs), CSAs, NECTAs, etc. Complete and within-state.
- Note the geographic component sub-summaries for the 310-complete CBSA data.
- The 310 and 311 summaries will be redundant for CBSAs contained in a single state.
- Does not include suffix-modified PCT[r] tables such as tables PCT12A through PCT12I, which are on the usphctr dataset.
- Naming convention for table items is the MCDC table-naming standard:
[TableId]i[cell#], where TableID is the table ID and cell# is the cell or line number within the table, e.g. p7i5 is the fifth cell in table P7.
- See the PHlabels.txt, PHCTlabels.txt files for variable detail.
),
SubType=phct,
SetGroup=us,
VarSet=variables,
URLMeta=%str(https://www2.census.gov/programs-surveys/decennial/2020/technical-documentation/complete-tech-docs/demographic-and-housing-characteristics-file-and-demographic-profile/2020census-demographic-and-housing-characteristics-file-and-demographic-profile-techdoc.pdf),
debug=0
);
%doset(
mode=,
libname=dhc2020,
memname=ustracts,
memlabel=,
geouniv=United States,
units=%str(tract),
Years=2020,
CreatePgm=DHC_master,
Keywords=2020 census detailed tables tracts,
Description=%nrbquote(Detailed P, H, PCT, and HCT tables for all US census tracts),
keyvars= sumlev geocomp state county ,
keyfmats=sumlev geocomp state county ,
keyquals=%str(| | | state county ),
DataSource=%str(U.S. Bureau of the Census),
SortedBy=LogRecNo,
UsageNotes=%nrbquote(
- This dataset includes summary data for all census tracts in the US.
- This data set has P, H, PCT, and HCT tables, excluding those PCT and HCT tables that have letter suffixes to indicate a race/ethnic subuniverse.
- Naming convention for table items is the MCDC table-naming standard:
[TableId]i[cell#], where TableID is the table ID and cell# is the cell or line number within the table, e.g. pct7i5 is the fifth cell in table PCT7.
- See the PHlabels.txt and PHCTlabels.txt files for variable detail.
),
SubType=inventory,
SetGroup=us,
VarSet=variables,
URLMeta=%str(https://www2.census.gov/programs-surveys/decennial/2020/technical-documentation/complete-tech-docs/demographic-and-housing-characteristics-file-and-demographic-profile/2020census-demographic-and-housing-characteristics-file-and-demographic-profile-techdoc.pdf),
debug=0
);
%doset(
mode=,
libname=dhc2020,
memname=uszips,
memlabel=,
geouniv=United States,
units=%str(ZCTAs),
sortprio=3,
Years=2020,
CreatePgm=DHC_master,
Description=%nrbquote(Detailed P(CT) and H(CT) tables for 5-digit ZIP Census Tabulation Areas (ZCTAs)),
keyvars=sumlev state county ,
keyfmats=sumlev state county ,
UsageNotes=%nrbquote(
- ZCTAs closely resemble but are not identical to ZIP codes. See MCDC's ZIP/ZCTA reference.
- Lots of redundancy here with the three summary levels (complete ZCTA, ZCTA-State and ZCTA-county), because nearly all ZCTAs are in a single state and over 90% of ZCTAs are in a single county.
- All county-based geocodes will be blank on all but 880 (ZCTA-county) summaries.
- Areaname values are pretty worthless. The 860 levels have "ZCTA5 xxxxx", while the 870 and 880 summaries use the state/county name.
- Does not include suffix-modified PCT[r] tables such as tables PCT12A through PCT12I, which are on the usphctr dataset.
- Naming convention for table items is the MCDC table-naming standard:
[TableId]i[cell#], where TableID is the table ID and cell# is the cell or line number within the table, e.g. p7i5 is the fifth cell in table P7.
- See the PHlabels.txt, PHCTlabels.txt files for variable detail.
),
SubType=phct,
SetGroup=us,
VarSet=variables,
URLMeta=%str(https://www2.census.gov/programs-surveys/decennial/2020/technical-documentation/complete-tech-docs/demographic-and-housing-characteristics-file-and-demographic-profile/2020census-demographic-and-housing-characteristics-file-and-demographic-profile-techdoc.pdf),
debug=0
);
*/
%doset(
mode=,
libname=dhc2020,
memname=usphctr,
memlabel=,
geouniv=United States,
units=%str(all dhc2020 national levels),
sortprio=3,
Years=2020,
CreatePgm=DHC_master,
Description=%nrbquote(Detailed PCT[r] tables (repeated for race/ethinic subgroups) for all geographies in US),
keyvars=sumlev geocomp state county ,
keyfmats=sumlev geocomp state county ,
UsageNotes=%nrbquote(
- These are important tables for demographers but not always of great general interest.
- One of the largest data sets in the MCDC archive.
- Naming convention for table items is the MCDC table-naming standard:
[TableId]i[cell#], where TableID is the table ID and cell# is the cell or line number within the table, e.g. the first cell in table PCT12I is named PCT12Ii1.
- See the PHCTRlabels.txt file for variable detail.
),
SubType=phct,
SetGroup=us,
VarSet=variablesr,
URLMeta=%str(https://www2.census.gov/programs-surveys/decennial/2020/technical-documentation/complete-tech-docs/demographic-and-housing-characteristics-file-and-demographic-profile/2020census-demographic-and-housing-characteristics-file-and-demographic-profile-techdoc.pdf),
debug=0
);
%doset(
mode=,
libname=dhc2020,
memname=uspcos,
memlabel=,
geouniv=United States,
units=%str(all dhc2020 national levels),
Years=2020,
CreatePgm=DHC_master,
Description=%nrbquote(Special PCO tables with group quarters detail for higher-level geographic areas in US),
keyvars=sumlev geocomp state county ,
keyfmats=sumlev geocomp state county ,
UsageNotes=%nrbquote(
Geographically, this set has a very limited set of higher level geographic areas. It includes summaries for state legislative districts (as defined in 2018).
Naming convention for table items is the MCDC table-naming standard: [TableId]i[cell#], where TableID is the table ID and cell# is the cell or line number within the table, e.g. pco2i3 is the third cell in table PCO2.
See the PCOlabels.txt file for variable detail.
),
SubType=phct,
SetGroup=us,
VarSet=variablespco,
URLMeta=%str(https://www2.census.gov/programs-surveys/decennial/2020/technical-documentation/complete-tech-docs/demographic-and-housing-characteristics-file-and-demographic-profile/2020census-demographic-and-housing-characteristics-file-and-demographic-profile-techdoc.pdf),
debug=0
);
/* post processing */
proc sort data=dhc2020.datasets out=bysortprio; by sortprio; run;
proc print data=bysortprio;
by libname notsorted libpath ;
id memname;
var SortPrio SetGroup SubType VarSet URLmeta GeoUniv years ;
title2 'Listing of selected fields from dhc2020.datasets (sorted by SortPrio)';
run ;
proc datasets library=dhc2020 nolist;
modify datasets;
index delete dataset memname;
index create dataset=(libname memname) / unique;
index create memname;
quit;
options NOmprint msglevel=i;
%gendshtm(libname=dhc2020,debug=0,runprocc=0);