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
And most final work by JGB, Jan/Feb 2005
-- */
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================
%let todo=uscds103;
%doset(mode=,libname=stf903,
memname=_template_generic,
DataSource=%str(1990 Census, Summary Tape File 3),
Year=1990,
UsageNotes=%nrbquote(
- These data can be accessed via the American FactFinder
application at the Census Bureau web site (choose Data Sets and then 1990 Summary Tape File 3 from 1st 2 pages.)
- 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=,
debug=0) ;
%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.
- These data can be accessed via the American FactFinder
application at the Census Bureau web site (choose Data Sets and then 1990 Summary Tape File 3 from 1st 2 pages.)
- 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,sortprio=2)
%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;
%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=%nrbquote(Summaries for Missouri Census Tracts Using 2000 Geography),
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= %nrbquote(Summaries for Missouri Public Use Microdata Areas),
keyvars=slvl puma,
keyfmats=slvl mopuma,
SortedBy=,
UsageNotes=%nrbquote(--
The PUMA geography was created specifically for use on the 1990 Public Use Microdata Sample (PUMS) files. These are
the areas as used on the A sample files.
- To see how these PUMAs relate to other geographies, such as counties, cities, tracts, setc. use the 1990 version of
Geocorr.
),
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=%nrbquote(PUMA Summaries for the Mo Portions of St Louis MSA),
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=,
SetGroup=stl,
Sortprio=2,
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)
%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=%nrbquote(Summaries for Updated MSA geography: as defined in 1994),
keyvars=sumlev msacmsa,
keyfmats=slvl metro,
SetGroup=Missouri,
debug=0)
%let state=29; %let stab=mo; %let statenm=Missouri;
%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=cnvt9782,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data inventory summaries,
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.
- For SAS(c) programmers who want to see how the set was created from the raw files see the reference to the
program creation file, which in turn makes use of the code in the
conversion macro.
),
debug=0)
%let state=29; %let stab=mo; %let statenm=Missouri;
%doset(libname=stf903,memname=moi,template=_template_i)
%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=cnvt9792,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data hierarchal summaries,
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.
),
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=moh,template=_template_h)
%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=nrbquote(Summarires for all U.S. Counties),
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=%nrbquote(Summaries for the Nation, Regions and Divisions
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(Summaries for ~statenm 5-digit ZIP Codes),
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(libname=stf903,memname=usother,template=_template_generic,sortprio=3)
===========================End commented out================================ */ options source;
%doset(libname=stf903,memname=usplaces,universe=UnitedStates,units=places,
description=%nrbquote(Summaries for U.S. Places (Cities) of 10,000 or more Population),
template=_template_generic,
keyvars=slvl state placefp,
keyfmats=slvl state fplace,
keyquals= | | state,
UsageNotes=%nrbquote(-
- If you need place-within-county summaries (summary level 155) or summaries for smaller places you will
need to use a state level inventory file such as moi, ili, etc.
- Since places do not in general nest within counties, county codes are not filled in on this dataset.
- Both FIPS 5-digit and census 4-digit place codes were used in 1990. The variables corresponding to these
codes are placefp and place, resp.
),
debug=0)
%doset(mode=,libname=stf903,
memname=usmcds, template=_template_generic,
memlabel=%nrbquote(County Subdivision Level Summaries 12 Selected States),
geouniv=SelectedStates,
units=County Subdivisions,
Year=1990,
CreatePgm=%str(),
Keywords=stf3 stf903 summary tape file 3 1990 census sample data townships subdivisions,
Description=%nrbquote(Summaries for County Subdivisions in 12 Selected States Incl all of New England),
keyvars=slvl state county msacmsa,
keyfmats=slvl state county metro,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=State fipco,
UsageNotes=%nrbquote(-- Limited to MCDs over 10,000 in some states. Note values of SLVL.
- MCD=Minor Civil Divsion is another term for County Subdivision. In these states these entities are
also known as Towns or Townships.
),
sortprio=3,
debug=0)
%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=usmetros, template=_template_generic,
memlabel=%nrbquote(Summaries for US Metropolitan Statistical Areas),
geouniv=UnitedStates,
units=Metro Areas,
Year=1990,
CreatePgm=,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data place,
Description=%nrbquote(Summaries for all US Metro Areas (MSAs, CMSAs and PMSAs) both complete and within-state),
keyvars=slvl state msacmsa pmsa,
keyfmats=slvl state metro pmsa,
keyquals=,
DataSource=%str(1990 Census, Summary Tape File 3),
SortedBy=,
UsageNotes=%nrbquote(-These are the metro areas defined as of April, 1990
),
debug=0)
run;
%doset(mode=,libname=stf903,
memname=uscds103, template=_template_generic,
memlabel=%nrbquote(Summaries for US 103rd Congressional Districts),
geouniv=UnitedStates,
units=cds103,
Year=1990,
CreatePgm=cnvtstf3d,
Keywords=stf3 stf903 summary tape file 3 1990 census sample data cd congressional districts county,
Description=%nrbquote(Summaries for all US Congressional Districts and the county portions of the CDs),
keyvars=slvl state county,
keyfmats=slvl state county,
keyquals=,
DataSource=%str(1990 Census, Summary Tape File 3D),
SortedBy=state cd,
UsageNotes=%nrbquote(-These are the CDs as defined for the 1992 elections
),
debug=0)
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);