x cd /pub/data/stf903/Tools; %let pgm=invoke_dosets; filename pgm "&pgm..sas";
/*--Invoke the %doset macro to create observations in the Datasets dataset for this directory.
J.Blodgett, OSEDA, July, 2003
Updating document December 2003, ejc
-- */
title "Job to Invoke doset Macro for Sets in stf903, creating stf903.datasets";
*libname stf903 clear;
libname stf903 '/pub/data/stf903';
/* *****************************************
options compress=yes;
%doset(mode=initialize,libname=stf903);
options compress=no;
******************************************/
options nosource; /* =======================Begin comment================
===========================End commented out================================ */ options source;
%doset(mode=,libname=stf903,
memname=_template_generic,
DataSource=%str(1990 Census, Summary Tape File 3),
Year=1990,
UsageNotes=%nrbquote(
- Even if its a custom aggregation by the MCDC that is not available from AFF, you can still use AFF to access
the metadata. It is by far the easiest/fastest way to find out what tables are available for what keywords. Choose the
Detailed Tables options and then use the "by keyword" tab on the Select Tables page. Enter 1 or more keywords (e.g.
"poverty age") to get a list of tables related to those categories.
- For table cell variables we use the standard MCDC variable naming convention:
the table code, the letter i (for "item") and the
sequential cell #. For example, the 9 data cells of table P121 are named P121i1, P121i2, ..., P121i9.
),
varset=variables,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0);
%doset(mode=,libname=stf903,template=_template_generic,
memname=usstates,
memlabel=%nrbquote(U.S. State summaries, With Geographic Components),
geouniv=United States,
units=States,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data state urban rural,
Description=%nrbquote(Summaries for the 50 US States and DC and their Geographic Components),
keyvars=state geocomp,
keyfmats=state geocomp,
SortedBy=,
UsageNotes=%nrbquote(-
- To get state totals for Missouri use the filter:
State EQUALS 29 AND Geocomp EQUALS 00 .
Geocomp [geographic component code] indicates a special summary of a subpopulation of the area (state) based on various
geographic categories such as urban or rural. There are 30 such iterations for each state (32 for AK) in addition to the total (00)
summary. See the link to geocomp in the Key Variables section of this page.
),
SubType=,
SetGroup=United States, Sortprio=3,
URLMeta=%str(https://mcdc.missouri.edu/pub/data/stf903/Docs/index.html),
debug=0) ;
%let state=00; %let stab=us; %let statenm=United States;
run;
%doset(mode=,libname=stf903,
memname=_template_ssbgxxxx, template=_template_generic,
memlabel=%nrbquote(Block Group Summaries for ~msaname MSA in ~statenm),
geouniv=%str(~msaname MSA, ~stab),
units=Block Group,
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data state tract block groups,
Description=%nrbquote(Block group (level 150) summaries for ~msaname MSA within ~statenm.),
keyvars=slvl state county,
keyfmats=slvl state county ,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=county tract bg,
SubType=,
SetGroup=~statenm,
UsageNotes=%nrbquote(
- Even if its a custom aggregation by the MCDC that is not available from AFF, you can still use the site to access
the metadata. It is by far the easiest/fastest way to find out what tables are available for what keywords. Choose the
Detailed Tables options and then use the "by keyword" tab on the Select Tables page. Enter 1 or more keywords (e.g.
"poverty age") to get a list of tables related to those categories.
- For table cell variables we use the standard MCDC variable naming convention:
the table code, the letter i (for "item") and the
the sequential cell #. For example, the 9 data cells of table P121 are named P121i1, P121i2, ..., P121i9.
),
URLMeta=%str(https://mcdc.missouri.edu/pub/data/stf903/Docs/index.html),
debug=0) ;
%let state=20; %let stab=ks; %let statenm=Kansas;
%let msaname=Kansas City;
%doset(libname=stf903,memname=ksbg3760,template=_template_ssbgxxxx,createpgm=ksbgs,sortprio=6)
%let state=29; %let stab=mo?
; %let statenm=Missouri;
%let msaname=Kansas City;
%doset(libname=stf903,memname=mobg3760,template=_template_ssbgxxxx,sortprio=2)
%let msaname=Columbia;
%doset(libname=stf903,memname=mobg1740,template=_template_ssbgxxxx,sortprio=2)
%let msaname=Joplin;
%doset(libname=stf903,memname=mobg3710,template=_template_ssbgxxxx,sortprio=2)
%let msaname=St. Joseph;
%doset(libname=stf903,memname=mobg7000,template=_template_ssbgxxxx,sortprio=2)
%let msaname=St. Louis;
%doset(libname=stf903,memname=mobg7040,template=_template_ssbgxxxx,sortprio=2)
%let msaname=Springfield;
%doset(libname=stf903,memname=mobg7920,template=_template_ssbgxxxx,sortprio=2)
%let state=17; %let stab=il; %let statenm=Illinois;
%let msaname=St. Louis;
%doset(libname=stf903,memname=ilbg7040,template=_template_ssbgxxxx,sortprio=6)
%doset(mode=,libname=stf903,
memname=_template_sl090, template=_template_generic,
memlabel=%nrbquote(~statenm Summary Level 090 - Split Block Groups),
geouniv=~statenm,
units=Split Block Group,
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data county subdivisions,
UsageNotes=%nrbquote(- Summary level 090 is the smallest area for which sample data were published. The MCDC
uses data at this level when aggregating to approximate custom local geographies such as school districts.
- Even if its a custom aggregation by the MCDC that is not available from AFF, you can still use the site to access
the metadata. It is by far the easiest/fastest way to find out what tables are available for what keywords. Choose the
Detailed Tables options and then use the "by keyword" tab on the Select Tables page. Enter 1 or more keywords (e.g.
"poverty age") to get a list of tables related to those categories.
- For table cell variables we use the standard MCDC variable naming convention:
the table code, the letter i (for "item") and the
the sequential cell #. For example, the 9 data cells of table P121 are named P121i1, P121i2, ..., P121i9.
),
keyvars=slvl county,
keyfmats=slvl county,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=county tract bg,
SubType=,
SetGroup=~statenm,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0) ;
%let state=04; %let stab=AZ; %let statenm=Arizona;
%doset(libname=stf903,memname=azsl090,template=_template_sl090,sortprio=7)
%let state=02; %let stab=AK; %let statenm=Alaska;
%doset(libname=stf903,memname=aksl090,template=_template_sl090,sortprio=7)
%let state=01; %let stab=AL; %let statenm=Alabama;
%doset(libname=stf903,memname=alsl090,template=_template_sl090,sortprio=7)
%let state=05; %let stab=AR; %let statenm=Arkansas;
%doset(libname=stf903,memname=arsl090,template=_template_sl090,sortprio=7)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(libname=stf903,memname=mosl090,template=_template_sl090)
%doset(mode=,libname=stf903,
memname=mobgs00, template=_template_generic,
memlabel=%nrbquote(Missouri Summaries for unsplit Block Groups using 2000 Geography),
geouniv=Missouri,
units=2000 Block Groups,
CreatePgm=mosl090_00,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data block group 2000 geography,
Description=%nrbquote(Missouri 1990 data aggregated/allocated to 2000 block group (level 150) geography),
keyvars=sumlev county msacmsa,
keyfmats=slvl county metro,
SortedBy=county,
UsageNotes=%nrbquote(-
- We aggregated 1990 BG level summaries to create these tables of 1990 data aggregated to 2000 geography.
These are level 150 complete block groups, whereas the mosl090_00 dataset is for split bgs.
- There is allocation/aggregation error at this level, to go along with the substantial sampling error present in
any data for such small geographic areas. But when these observations are used in an aggregation to estimate data for
larger areas those errors will cancel each other out and the aggregations will be much more reliable.
),
SubType=,
SetGroup=Missouri2,
debug=0)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(mode=,libname=stf903,template=_template_generic,
memname=mosl090_00,
memlabel=%nrbquote(Missouri Summaries for Split Block Groups Using 2000 Geography),
geouniv=Missouri,
units=Split Block Groups,
Year=1990,
CreatePgm=mosl090_00,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data state county subdivisions,
Description=%nrbquote(Missouri 1990 data aggregated/allocated to 2000 split block group (level 090) geography),
keyvars=sumlev county,
keyfmats=sumlev county,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=,
UsageNotes=%nrbquote(
- We started with the a 1990 census block to 2000 census block equivalency file for Missouri and created a 1990
split-BG to 2000 split-BG equivalency file, which we used to allocate 1990 split-bg data to these 2000 geo summaries.
- There is allocation/aggregation error at this level, to go along with the substantial sampling error present in
any data for such small geographic areas. But when these observations are used in an aggregation to estimate data for
larger areas those errors will cancel each other out and the aggregations will be much more reliable.
- Think of these summaries as the closest thing we have to microdata outside the Census Bureau firewall.
),
SubType=,
SetGroup=Missouri2,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(mode=,libname=stf903,template=_template_generic,
memname=molegdists02,
memlabel=%nrbquote(Missouri Summaries by 2002 State Legislative Districts and CDs),
geouniv=Missouri,
units=%str(2002 State Legislative Districts),
Year=1990,
CreatePgm=molegdists02,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data state senate house cd108,
Description=%nrbquote(Summaries for current (2002) state legislative and 108th congressional districts in ~statenm.),
keyvars=sumlev,
keyfmats=sumlev ,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=,
UsageNotes=%nrbquote(
- 1990 data aggregated to 2002 legislative districts, including 108th Congressional Districts
- The allocation process was complex but it all rests on a foundation of our 1990 block to 2000 block equivalency
file for Mo.
),
SubType=,
SetGroup=Missouri2,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(mode=,libname=stf903,template=_template_generic,
memname=molegdistcos02,
memlabel=%nrbquote(Missouri Summaries by 2002 State Legislative Districts and CDs Within Counties),
geouniv=Missouri,
units=%str(County Legislative/Congressional Dists.),
Year=1990,
CreatePgm=molegdists02,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data state senate house cd108,
Description=%nrbquote(Summaries for current (2002) state legislative and 108th
congressional districts within county for ~statenm.),
keyvars=sumlev county,
keyfmats=sumlev county,
keyidvars=,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=,
UsageNotes=%nrbquote( -
1990 data aggregated to 2002 legislative districts and then-current CDs.
),
SubType=,
SetGroup=Missouri2,
Sortprio=2,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(mode=,libname=stf903,template=_template_generic,
memname=moschlcos00,
memlabel=%nrbquote(Summaries for 2000 Missouri School Districts/Counties),
geouniv=Missouri,
units=2000 School District within county,
Year=1990,
CreatePgm=moschls00,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data 2000 school districts,
Description=%nrbquote(1990 STF3 data aggregated to 2000 school districts/County geography. Data used in 1990-2000
trends reports.),
keyvars=sumlev county desedist,
keyfmats=slvl mocnty desedst,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=,
UsageNotes=%nrbquote(),
SubType=,
SetGroup=Missouri2,
Sortprio=2,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(mode=,libname=stf903,template=_template_generic,
memname=moschls00,
memlabel=%nrbquote(Summaries for 2000 Missouri School Districts),
geouniv=Missouri,
units=2000 School District,
Year=1990,
CreatePgm=moschls00,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data school districts,
Description=%nrbquote(1990 STF3 data aggregated to 2000 school districts geography. Data used in 1990-2000
trends reports.),
keyvars=sumlev desedist,
keyfmats=slvl desedst,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=,
UsageNotes=%nrbquote(),
SubType=,
SetGroup=Missouri2,
Sortprio=2,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(mode=,libname=stf903,template=_template_generic,
memname=moschl94,
memlabel=%nrbquote(Missouri Summary Tables by 1994 School Districts),
geouniv=Missouri,
units=School Districts,
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data school districts,
Description=%nrbquote(STF3 indicators aggregated to 1994 school district geography.),
keyvars=sumlev county pcounty ,
keyfmats=slvl mocnty mocnty ,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=,
UsageNotes=%nrbquote(),
SubType=,
SetGroup=, Sortprio=2,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(mode=,libname=stf903,template=_template_generic,
memname=stltras,
memlabel=%nrbquote(1990 Census Tract Area (TRA) for St. Louis/MO MSA),
geouniv=%str(St Louis MSA, MO),
units=Tract Areas,
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data state tract area TRAs,
Description=%nrbquote(Special tabulation to locally-defined custom geography. Tract Areas are aggreagates of
contiguous census tracts with mnemonic names assigned.),
keyvars=slvl county tra puma,
keyfmats=slvl mocnty traname,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=puma tra,
UsageNotes=%nrbquote(-
- See web report that shows
the tracts, TRAs and PUMA codes used in this dataset.
- These PUMA codes correspond to the A PUMAs used in the 1990 PUMS files but have different 3-character codes. The
first character of the PUMA code is a county indicator.
- The last observation on the dataset has SLVL=319 and is the 5-county metro west totals.
- TRAs in the city of St. Louis are the same as health districts.
),
SubType=,
Sortprio=2,
SetGroup=stl,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(mode=,libname=stf903,template=_template_generic,
memname=ksbgs,
memlabel=%nrbquote(Complete Tables for Kansas Block Groups),
geouniv=Kansas,
units=Block Groups,
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data state tract block group,
Description=%nrbquote(),
keyvars=slvl county,
keyfmats=slvl county,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=,
SubType=,
SetGroup=Kansas,
Sortprio=6,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%doset(mode=,libname=stf903,template=_template_generic,
memname=mosl080,
memlabel=%nrbquote(Complete Tables for Missouri Split Census Tracts/BNAs),
geouniv=Missouri,
units=%str(SumLev 080),
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data state tract block numbering areas,
Description=%nrbquote(Hierarchal summaries for Census Tracts within township and place),
keyvars=slvl county,
keyfmats=slvl county,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=county,
SubType=,
SetGroup=Missouri,
Sortprio=2,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(mode=,libname=stf903,template=_template_generic,
memname=mosl070,
memlabel=%nrbquote(Complete Tables for Missouri Places Within Townships),
geouniv=Missouri,
units=Place,
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data state county subdivisions place,
Description=%nrbquote(Missouri Summaries for Summary Level 070, Places Within Townships),
keyvars=slvl county placefp,
keyfmats=slvl county fplace,
SortedBy=county,
SubType=,
SetGroup=Missouri,
Sortprio=2,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(mode=,libname=stf903,template=_template_generic,memname=motrs00,
memlabel=%nrbquote(Summaries for Missouri Census Tracts Using 2000 Geography),
geouniv=Missouri,
units=2000 Census Tract,
Year=1990,
CreatePgm=mosl090_00,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data state 2000 tracts,
Description=&memlabel,
keyvars=sumlev county,
keyfmats=slvl county ,
SortedBy=county tract,
UsageNotes=%nrbquote(-- This is 1990 data that has been allocated/aggregated to 2000 census tract geography.
Geocode = County-Census Tract.Block Group (example: 29001-9501.00)
),
SubType=,
SetGroup=Missouri,
Sortprio=2,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(mode=,libname=stf903,template=_template_generic,
memname=kssdunis,
memlabel=%nrbquote(1990 Kansas Unified School District Summary Level),
geouniv=Kansas,
units=School District,
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data state school districts,
Description=%nrbquote(),
keyvars=slvl county pcounty,
keyfmats=slvl county county ,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=,
SubType=,
SetGroup=Kansas2,
Sortprio=6,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%doset(mode=,libname=stf903,template=_template_generic,
memname=mopumas,
memlabel=%nrbquote(Summaries for Missouri Public Use Microdata Areas),
geouniv=Missouri,
units=PUMA,
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data state puma,
Description=&memlabel,
keyvars=slvl puma,
keyfmats=slvl mopuma,
SortedBy=,
UsageNotes=%nrbquote(
The PUMS files, on the other hand, lets the user access some of the raw survey data
describing individual housing units and persons. The data is defined in larger areas for suppression purposes.
),
SubType=,
SetGroup=Missouri,
Sortprio=2,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0) ;
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(mode=,libname=stf903,
memname=stlpumas,template=_template_generic,
memlabel=%nrbquote(PUMA Summaries for the Mo Portions of St Louis MSA),
geouniv=%str(St. Louis MSA, MO),
units=PUMA,
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data state pums,
Description=&memlabel,
keyvars=slvl county puma,
keyfmats=slvl county mopuma,
SortedBy=,
UsageNotes=%nrbquote(-- PUMAs are the geographic identifiers used on the Public Use Microdata Sample files. These are the
"A PUMA" codes used on the 5 pct sample files.
These tables were allocated/aggregated from split BG (level 090) data.
),
SubType=,
Varset=variables,
SetGroup=stl,
Sortprio=2,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%doset(mode=,libname=stf903,
memname=ilhstl,template=_template_generic,
memlabel=%nrbquote(Hierarchal Summary Levels for Illinois portion of the St. Louis MSA),
geouniv=%str(St. Louis MSA, IL),
units=hierarchal levels,
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data state tract hierarchal blockgroups,
Description=%nrbquote(Hierarchal data summary levels (070 080 090) for St. Louis metro area, Illinois pt),
keyvars=slvl county ,
keyfmats=slvl county ,
SortedBy=county,
SubType=,
SetGroup=stlil,
Sortprio=6,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%doset(mode=,libname=stf903,template=_template_generic,
memname=ilhnotsl,
memlabel=%nrbquote(Hierarchal Summaries for Illinois outside St. Louis MSA),
geouniv=Illinois special,
units=Block Group,
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data state tract blockgroups,
Description=%nrbquote(Hierarchial data summary levels - 070 080 090),
keyvars=slvl state county areaname,
keyfmats=slvl state county ,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=county areaname,
UsageNotes=%nrbquote(),
SetGroup=,
Sortprio=6,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%doset(mode=,libname=stf903,
memname=_template_trbnas, template=_template_generic,
memlabel=%nrbquote(Summaries for ~statenm Census Tract/Block Numbering Area),
geouniv=~statenm,
units=Tract,
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data state tract bnas,
Description=%nrbquote(Summaries for ~statenm Census Tract/Block Numbering Area),
keyvars=slvl county,
keyidvars=slvl county,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=county bna,
UsageNotes=%nrbquote(-- Block Numbering Areas look just like census tracts. Same summary level code.
Difference is that they were assigned by the Census Bureau, while tracts were defined by local tract committees.
),
SubType=,
SetGroup=~statenm,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(libname=stf903,memname=motrbnas,template=_template_trbnas,sortprio=2)
%let state=17; %let stab=il; %let statenm=Illinois;
%doset(libname=stf903,memname=iltrbnas,template=_template_trbnas,sortprio=6)
%let state=20; %let stab=ks; %let statenm=Kansas;
%doset(libname=stf903,memname=kstrbnas,template=_template_trbnas,sortprio=6)
%doset(mode=,libname=stf903,
memname=_template_9999, template=_template_generic,
memlabel=%nrbquote(~statenm Summaries for Block Groups not in an MSA),
geouniv=~statenm,
units=Block Groups,
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data state block group,
Description=%nrbquote(~statenm Block Group summaries (level 150) for BGs outside any MSA or CMSA.),
keyvars=slvl state county,
keyfmats=slvl state county,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=,
UsageNotes=%nrbquote(),
SubType=,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(libname=stf903,memname=mobg9999,template=_template_9999,sortprio=2)
%let state=17; %let stab=il; %let statenm=Illinois;
%doset(libname=stf903,memname=ilbg9999,template=_template_9999,sortprio=6)
%doset(mode=,libname=stf903,
memname=newmsas,template=_template_generic,
memlabel=%nrbquote(Summaries for Updated MSA geography: as defined in 1994),
geouniv=Missouri,
units=1994 MSA,
Year=1990,
CreatePgm=,
UsageNotes=%nrbquote(-- We simply aggregated the county level data to get these new summaries
),
Keywords=stf3 stf903 summary tape file 3 1990 census sample data msas,
Description=&memlabel,
keyvars=sumlev msacmsa,
keyfmats=slvl metro,
SetGroup=Missouri,
debug=0)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(mode=,libname=stf903,
memname=_template_mcds, template=_template_generic,
memlabel=%nrbquote(County Subdivision Level Summaries (060) for ~statenm),
geouniv=~statenm,
units=County Subdivisions,
Year=1990,
CreatePgm=%str(),
Keywords=stf3 stf903 summary tape file 3 1990 census sample data townships subdivisions,
Description=%nrbquote(Complete STF3 Table Summaries for County Subdivisions for ~statenm),
keyvars=slvl state county msacmsa,
keyfmats=slvl state county metro,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=State fipco,
UsageNotes=%nrbquote(),
SubType=,
SetGroup=~statenm,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(libname=stf903,memname=momcds,template=_template_mcds,sortprio=2)
%let state=00; %let stab=us; %let statenm=United States;
%doset(libname=stf903,memname=usmcds,template=_template_mcds,sortprio=4)
%let state=17; %let stab=il; %let statenm=Illinois;
%doset(libname=stf903,memname=ilmcds,template=_template_mcds,sortprio=6)
%let state=20; %let stab=ks; %let statenm=Kansas;
%doset(libname=stf903,memname=ksmcds,template=_template_mcds,sortprio=6)
%doset(mode=,libname=stf903,
memname=moregns,template=_template_generic,
memlabel=%nrbquote(Regional-Administrative Summary Level Data in ~statenm),
geouniv=Missouri Counties,
units=MoDED MoRPC Extension MoDOT,
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data state ded extension rpc modot,
Description=%nrbquote(STF3 indicators by various administrative regions in ~statenm.),
keyvars=slvl state DED_region umx2 dot rpc,
keyfmats=slvl state dedrgn umxname modot rpcname,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=,
UsageNotes=%nrbquote(
Regions were constructed by aggregating county data. Regions included are Missouri
Dept. of Economic Dev.--ded, Regional Planning Commisions--rpc, Outreach and Extension-- umx2,
and Missouri Dept. of Transportation--dot.
),
SubType=,
SetGroup=Missouri,
Sortprio=2,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(mode=,libname=stf903,
memname=_template_i, template=_template_generic,
memlabel=%nrbquote(Inventory Level Summaries for ~statenm),
geouniv=~statenm,
units=Inventory,
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data,
Description=%nrbquote(Complete STF3 Table Summaries for Inventory Summary Levels, ~statenm),
keyvars=slvl state msacmsa county ,
keyfmats=slvl state metro county ,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=,
UsageNotes=%nrbquote
(- See the listing of values for the slvl key variable to see what levels are considered inventory. Note that
the variable slvl is the same as what we call SumLev in the 2000 census.
- See the ~stab.h dataset for the remaining ("Hierarchal") summary levels.
- The original setup for doing the conversion has not been saved. But the model conversion file we reference is
nearly identical to what we did for each state. The key to the conversion of the
stf903c.sas conversion macro.
- There are geographic component summaries for the state. Use filter geocomp=00 to avoid these.
),
SubType=,
SetGroup=~statenm,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%let state=19; %let stab=ia; %let statenm=Iowa;
%doset(libname=stf903,memname=iai,template=_template_i,sortprio=7)
%let state=04; %let stab=az; %let statenm=Arizona;
%doset(libname=stf903,memname=azi,template=_template_i,sortprio=7)
%let state=02; %let stab=ak; %let statenm=Alaska;
%doset(libname=stf903,memname=aki,template=_template_i,sortprio=7)
%let state=01; %let stab=al; %let statenm=Alabama;
%doset(libname=stf903,memname=ali,template=_template_i,sortprio=7)
%let state=05; %let stab=ar; %let statenm=Arkansas;
%doset(libname=stf903,memname=ari,template=_template_i,createpgm=sortprio=7)
%doset(mode=,libname=stf903,
memname=_template_h, template=_template_generic,
memlabel=%nrbquote(Hierarchal Level Summaries for ~statenm),
geouniv= ~statenm,
units=Hierarchal,
Year=1990,
CreatePgm=njcnvt,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data,
Description=%nrbquote(Complete STF3 Table Summaries for Hierarchal Summary Levels, ~statenm),
keyvars=slvl state msacmsa county,
keyfmats=slvl state metro county,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=,
UsageNotes=%nrbquote
(- See the listing of values for the slvl key variable to see what levels are considered hierarchal. Note that
the variable slvl is the same as what we call SumLev in the 2000 census.
- See the ~stab.i dataset for the remaining ("Inventory") summary levels.
- The original setup for doing the conversion has not been saved. But the model conversion file we reference is
nearly identical to what we did for each state. The key to the conversion of the
stf903c.sas conversion macro.
),
SubType=,
SetGroup=~statenm,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%let state=04; %let stab=az; %let statenm=Arizona;
%doset(libname=stf903,memname=azh,template=_template_h,sortprio=7)
%let state=02; %let stab=ak; %let statenm=Alaska;
%doset(libname=stf903,memname=akh,template=_template_h,sortprio=7)
%let state=01; %let stab=al; %let statenm=Alabama;
%doset(libname=stf903,memname=alh,template=_template_h,sortprio=7)
%let state=05; %let stab=ar; %let statenm=Arkansas;
%doset(libname=stf903,memname=arh,template=_template_h,sortprio=7)
%doset(mode=,libname=stf903,
memname=uscntys, template=_template_generic,
memlabel=%nrbquote(Summarires for all U.S. Counties),
geouniv=United States,
units=County,
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary county tape file 3 1990 census sample data,
Description=&memlabel,
keyvars=slvl state county msacmsa pmsa ,
keyfmats=slvl state county metro pmsa,
SortedBy=state county,
UsageNotes=%nrbquote(-- Summaries are for counties and county equivalents. The latter include independent
cities such as St. Louis and Baltimore, and parishes in Louisiana. These are the counties as they were defined at the time
of the 1990 census.
),
debug=0)
%let state=00; %let stab=us; %let statenm=United States;
%doset(mode=,libname=stf903,
memname=usregdiv, template=_template_generic,
memlabel=%nrbquote(Summaries for the Nation, Regions and Divisions),
geouniv=United States,
units=US Region Division,
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data state regions divisions,
Description=&memlabel with Geographic Component Summaries as well,
keyvars=slvl reg div geocomp,
keyfmats=slvl usregion divisio geocomp,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=,
UsageNotes=%nrbquote(-- Use a filter of geocomp EQUALS 00 if you do NOT want to see data for a
geographic component. See the values of variable geocomp (in Key Variables section, above) to understand geogrraphic
components.
),
SubType=,
SetGroup=, Sortprio=3,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%let state=00; %let stab=us; %let statenm=United States;
%doset(mode=,libname=stf903,
memname=_template_zips, template=_template_generic,
memlabel=%nrbquote(5-digit ZIP code level Summaries for ~statenm),
geouniv=~statenm,
units=zip,
Year=1990,
CreatePgm=,
Keywords=stf3b stf903 summary tape file 3 1990 census sample data ZIP code,
Description=%nrbquote(Complete STF3 Zip Code Table Summaries for ~statenm),
keyvars=slvl state ,
keyfmats=slvl state ,
DataSource=%str(1990 Census, Summary Tape File 3B),
SortedBy=,
UsageNotes=%nrbquote(-- See the ~stab.zipcos dataset if you want county portions of ZIPS.
- The ZIP codes used here are as defined circa 1991 when a vendor did the work of aggregating census data to
create these summaries.
- To access ZIP and ZIP-within-county data from AFF you must select the "Show all geography types" option on the "Select
Geography" screen. But then you have to do it 1 county at a time (yuck).
),
debug=0)
%doset(mode=,libname=stf903,
memname=_template_zipcos, template=_template_zips,
memlabel=%nrbquote(Zip Codes Within County Level Summaries for ~statenm),
geouniv=~statenm,
units=%str(ZIP/County),
CreatePgm=,
Description=%nrbquote(Summaries for Level 820, ZIPs within county, for ~statenm),
keyvars=slvl state county msacmsa pmsa,
keyfmats=slvl state county metro pmsa,
UsageNotes=%nrbquote(+- Most ZIP codes are entirely contained within a single county.
),
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%let state=00; %let stab=us; %let statenm=United States;
%doset(libname=stf903,memname=uszipcos,template=_template_zipcos,sortprio=3)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(libname=stf903,memname=mozipcos,template=_template_zipcos,createpgm=)
%let state=17; %let stab=il; %let statenm=Illinois;
%doset(libname=stf903,memname=ilzipcos,template=_template_zipcos,createpgm=)
%let state=20; %let stab=ks; %let statenm=Kansas;
%doset(libname=stf903,memname=kszipcos,template=_template_zipcos,createpgm=)
%let state=00; %let stab=us; %let statenm=United States;
%doset(libname=stf903,memname=uszips,template=_template_zips,sortprio=3)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(libname=stf903,memname=mozips,template=_template_zips,createpgm=)
%let state=17; %let stab=il; %let statenm=Illinois;
%doset(libname=stf903,memname=ilzips,template=_template_zips,createpgm=)
%let state=20; %let stab=ks; %let statenm=Kansas;
%doset(libname=stf903,memname=kszips,template=_template_zips,createpgm=)
%doset(mode=,libname=stf903,
memname=_template_other, template=_template_generic,
memlabel=%nrbquote(Other Level Summaries for ~statenm),
geouniv=~statenm,
units=Urban Areas,
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data urban place,
Description=%nrbquote(STF3 Table Summaries for Miscellaneous Summary Levels in ~statenm),
keyvars=slvl state county msacmsa placefp,
keyfmats=slvl state county metro fplace,
keyquals=| | | | state,
keyidvars=,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=,
UsageNotes=%nrbquote(-),
SubType=,
SetGroup=,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(libname=stf903,memname=moother,template=_template_other,createpgm=)
%let state=00; %let stab=us; %let statenm=United States;
%doset(libname=stf903,memname=usother,template=_template_other,sortprio=3)
%let state=17; %let stab=il; %let statenm=Illinois;
%doset(libname=stf903,memname=ilother,template=_template_other,createpgm=)
%doset(mode=,libname=stf903,
memname=_template_places, template=_template_generic,
memlabel=%nrbquote(Place(City) Level Summaries for ~statenm),
geouniv=~statenm,
units=State County Place,
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data place,
Description=%nrbquote(Complete STF3 Table Summaries for Summary Level 160 (complete place) for ~statenm),
keyvars=slvl state placefp,
keyfmats=slvl state fplace,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=,
UsageNotes=%nrbquote(-
- If you need place-within-county summaries then you need summary level 155, found on either the &stab.i or &stab.other dataset.
- Since places do not in general nest within counties, the county codes are not filled in on this dataset.
- Both FIPS and census place codes were used in 1990. See the keyvars entry for the Place variable to see a
report showing census to FIPS correspondence.
),
SubType=,
SetGroup=,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%let state=00; %let stab=us; %let statenm=United States;
%doset(libname=stf903,memname=usplaces,template=_template_places,sortprio=3)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(libname=stf903,memname=moplaces,template=_template_places,createpgm=)
%let state=17; %let stab=il; %let statenm=Illinois;
%doset(libname=stf903,memname=ilplaces,template=_template_places,createpgm=)
%let state=20; %let stab=ks; %let statenm=Kansas;
%doset(libname=stf903,memname=ksplaces,template=_template_places,createpgm=)
%doset(mode=,libname=stf903,
memname=_template_stcnty, template=_template_generic,
memlabel=%nrbquote(State and County Summary Tables for ~statenm),
geouniv=~statenm,
units=State County,
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data state county,
Description=%nrbquote(State and County Summaries for ~statenm),
keyvars=slvl state fipco,
keyfmats=slvl state county,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=State County,
UsageNotes=%nrbquote(-
- There are no geographic component summaries on this dataset. But those can be accessed in the usstates dataset
if they are of interest.
),
SubType=,
SetGroup=~statenm,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0) ;
%let state=00; %let stab=us; %let statenm=United States;
%*doset(libname=stf903,memname=usstcnty,template=_template_stcnty,sortprio=3) ;
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(libname=stf903,memname=mostcnty,template=_template_stcnty,createpgm=)
%let state=17; %let stab=il; %let statenm=Illinois;
%doset(libname=stf903,memname=ilstcnty,template=_template_stcnty,createpgm=)
%let state=20; %let stab=ks; %let statenm=Kansas;
%doset(libname=stf903,memname=ksstcnty,template=_template_stcnty,createpgm=)
;
%doset(mode=,libname=stf903,
memname=_template_metros, template=_template_generic,
memlabel=%nrbquote(Metropolitan Statistical Area Summary Tables for ~statenm),
geouniv=~statenm,
units=Metro Areas,
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data place,
Description=%nrbquote(Complete STF3 Table Summaries for Metro Areas (MSAs, CMSAs and PMSAs) for ~statenm),
keyvars=slvl state msacmsa,
keyfmats=slvl state metro,
keyquals=,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=,
UsageNotes=%nrbquote(These are the metro areas defined as of April, 1990
),
SubType=,
SetGroup=~statenm,
URLMeta=%str(https://mcdc.missouri.edu/data/stf903/Docs),
debug=0)
%let state=00; %let stab=us; %let statenm=United States;
%doset(libname=stf903,memname=usmetros,template=_template_metros,sortprio=3)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(libname=stf903,memname=mometros,template=_template_metros,createpgm=)
%let state=17; %let stab=il; %let statenm=Illinois;
%doset(libname=stf903,memname=ilmetros,template=_template_metros,createpgm=)
%let state=20; %let stab=ks; %let statenm=Kansas;
%doset(libname=stf903,memname=ksmetros,template=_template_metros,createpgm=)
run;
proc sort data=stf903.datasets out=bysortprio;
by SortPrio GeoUniv SetGroup SubType Memname ; run;
proc print data=bysortprio;
by libname notsorted libpath ;
id memname;
var SortPrio SetGroup SubType GeoUniv;
title2 'Listing of Selected Fields from stf903.datasets ';
run ;
proc datasets library=stf903 nolist;
modify datasets;
index delete dataset memname;
index create dataset=(libname memname) / unique;
index create memname;
quit;
options mprint;
%gendshtm(libname=stf903,runprocc=0);