x cd /pub/data/sf32000x/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, Mar., 2003 Running 8/03 to regenerate datasets.html with links to uex2dex -- dexter. Running 12/13 to fix usregdiv entry and get new conversion dates on several other us data sets. -- */ title "Job to Invoke doset Macro for Sets in sf32000x, creating sf32000x.datasets"; libname sf32000x '/pub/data/sf32000x'; *-----Run this step ONLY ONCE------------------------------------------; *----If you need to rerun (start over) then delete the datasets dataset first. doset will not allow initialize mode if the datasets set already exists.---; %*doset(mode=initialize, libname=sf32000x,debug=1); *----------------------------------------------------------------------; %global todo; %*let todo=uspumas; %**let todo=mozips ilzips; %let todo=usregdiv; *<======================================================; %let statenm=Missouri; proc datasets library=sf32000x nolist; modify datasets; index delete dataset memname; index create dataset=(libname memname) / unique; index create memname; quit; /* =======================Begin comment================ ******************************************************************************************************* * Do standard sets for states including the i, h, stcnty, places, zips, tracts, bgs, msas00, mcds * *******************************************************************************************************; %doset(mode=,libname=sf32000x, memname=_template_i, memlabel=%nrbquote(Inventory geographic summaries for ~statenm), geouniv=~statenm, units=Inventory_Levels, Year=2000, CreatePgm=cnvtsf3x, Keywords=sf3 standard extract inventory demographic indicators income education poverty 2000 census sample, Description=%nrbquote(Contains the standard demographic profile data for the so-called "inventory" summary levels. See the listing of values for the SumLev key variable to see what levels are considered inventory. Many of the other datasets for this state are really views that reference this dataset. For example ~stab.tracts is just the subset of ~stab.i, where SumLev='140'.), keyvars=SumLev county placefp msacmsa pmsa , keyfmats=sumlev county fplace metro metro , keyquals=| | state | |, keyidvars=, DataSource=%str(2000 Census, Summary File 3.), SortedBy=county, UsageNotes=%nrbquote(The first obs on the dataset is the ~statenm summary, then for each county you get the county summary obs (SumLev 050), followed by all the county subdivisions (SumLev 060), followed by the census tract and BG summaries (SumLevs 140 and 150) interleaved by tract and bg, followed by the complete place (SumLev 160) and place-within-county (SumLev 155). The ZCTA-within-state (SumLev 871) and ZCTA-within-county (SumLev 881) summaries are mixed together in ZCTA order at the end of the dataset.

See the "DP3_2K" profile report application which utilize the data stored in this dataset.

The logrecno variable from the Summary File 3 record for the geographic entity is stored to allow linking back to original, complete SF3 data for the area (filetype sf32000).), SubType=1i, SetGroup=~stab, VarSet=Variables, URLMeta=%str(https://mcdc.missouri.edu/pub/data/sf32000x/Variables.pdf), filters=, debug=1) %doset(mode=,libname=sf32000x, memname=_template_h, memlabel=%nrbquote(Hierarchal geographic summaries for ~statenm), geouniv=~statenm, units=Hierarchal_Levels, Year=2000, CreatePgm=cnvtsf3x, Keywords=sf3 standard extract hierarchal demographic indicators income education poverty 2000 census sample, Description=%nrbquote(Contains the standard demographic profile data for the so-called "hierarchal" summary levels. See the listing of values for the SumLev key variable to see what levels are considered hierarchal. They are basically the result of intersecting other complete ("inventory") levels. For example, level 070 is a County Subdivision (MCD) within Place summary, while level 085 breaks down the 070 further by Census Tract and Urban/Rural portion.), keyvars=SumLev county placefp msacmsa pmsa , keyfmats=sumlev county fplace metro metro , keyquals=| | state | |, keyidvars=, DataSource=%str(2000 Census, Summary File 3.), SortedBy=%str(county cousbufp placefp tract (*)), UsageNotes=%nrbquote (See the Summary Level Sequence Chart for SF3 to see the order of the SumLevs.

SumLev 090 is important because it is the smallest geographic unit for which sample data was published in the 2k census. As such, it is frequently used to estimate locally defined geographic areas by aggregating 090 level summaries. The 085 (split census tract) level is similarly important in that it is the smallest geo unit for which the SF3 "CT" table data is available. There are a few variables on this dataset that were derived from "CT" tables on the parent SF32000 observation. These variables will be missing for the 090 summary level - only.

The logrecno variable from the Summary File 3 record for the geographic entity is stored to allow linking back to original, complete SF3 data for the area (filetype sf32000).), SubType=2h, SetGroup=~stab, VarSet=Variables, URLMeta=%str(https://mcdc.missouri.edu/pub/data/sf32000x/Variables.pdf), filters=, debug=1) %doset(mode=,libname=sf32000x, memname=_template_geoview, memlabel=%nrbquote(~geoname summaries for ~statenm), geouniv=~statenm, units=~geoname, Year=2000, CreatePgm=cnvtsf3x, Keywords=sf3 standard extract ~geoname ~statenm demographic indicators income education poverty 2000 census sample, Description=%nrbquote(Contains the standard demographic profile data. This is a view that simply extracts a subset of the ~stab.i dataset using the filter where SumLev in (~sumlevs) so that we only see ~geoname level summaries. ), keyvars=sumlev county, keyfmats=sumlev county, keyquals=, DataSource=%str(2000 Census, Summary File 3.), SortedBy=, UsageNotes=%nrbquote(

See the "DP3_2K" and "DP3_2KT" profile report applications which utilize the data stored in this dataset.

The logrecno variable from the Summary File 3 record for the geographic entity is stored to allow linking back to original, complete SF3 data for the area (filetype sf32000).), SubType=4~set, SetGroup=~stab, VarSet=Variables, URLMeta=%str(https://mcdc.missouri.edu/pub/data/sf32000x/Variables.pdf), filters=, debug=1) ======================End comment================== */ * <=========================================================================*; %macro doit(state,stab); %doset(libname=sf32000x,memname=&stab.i,template=_template_i) ; %doset(libname=sf32000x,memname=&stab.h,template=_template_h) ; %let set=stcnty; %let geoname=State and County; %let sumlevs=040 050; %doset(libname=sf32000x,memname=&stab&set,template=_template_geoview,Subtype=3&set) ; %let set=tracts; %let geoname=Census Tract; %let sumlevs=140; %doset(libname=sf32000x,memname=&stab&set,template=_template_geoview) ; %let set=bgs; %let geoname=Block Group; %let sumlevs=150; %doset(libname=sf32000x,memname=&stab&set,template=_template_geoview) ; %let set=zips; %let geoname=ZCTA; %let sumlevs=871; %doset(libname=sf32000x,memname=&stab&set,template=_template_geoview,keyvars=sumlev,keyfmats=sumlev, usagenotes=%nrbquote(+

For a detailed discussion of ZCTAs and ZIP codes see the All About ZIP Codes web page.

If you need data for the portion of a ZCTA within a county then you want SumLev 881, which you can get by accessing the &stab.i dataset and applying the filter: SumLev = 881.

Note that there is also a uszips dataset that has complete ZCTA summaries for the entire U.S. )) ; %let set=msas00; %let geoname=Metropolitan Area; %let sumlevs=390 395; %doset(libname=sf32000x,memname=&stab&set,template=_template_geoview,keyvars=sumlev msacmsa pmsa,keyfmats=sumlev metro metro, usagenotes=%nrbquote(+

These metro areas are as defined at the time of the census, April, 2000. To see the entities that make up the metro areas see the Bureau web page where they are reported. Most of the country defines metro areas in terms of entire counties, but in the 6 New England states they are comprised of towns.

The summaries here are for the portions of the metro areas within the state. If a metro area spans states then you can only get the complete metro area summary from the usmsas00 dataset, which has data for the entire country.)); options mprint; %let set=places; %let geoname=Place; %let sumlevs=160; %doset(debug=1,libname=sf32000x,memname=&stab&set,template=_template_geoview,keyvars=sumlev placefp lsadc, keyfmats=sumlev fplace lsadc, keyquals=| state |, usagenotes=%nrbquote(+

In census terminology place means either an incorporated city, town, village, etc. or something called a Census Designated Place)) ; %mend doit; /*<=========================Comment out===================================== %dostates(17 20 29,names=1); %dostates(10 26 27 ,names=1); %dostates(31, names=1); ===========================End commented out================================ */ ******************************************************************************************************* * Do national (us) datasets * *******************************************************************************************************; %let set=regdiv; %let geoname=National Region and Division; %let sumlevs=010 020 030; %doset(libname=sf32000x,memname=us&set,template=_template_us,keyvars=sumlev region division,keyfmats=sumlev region divisio, SubType=1&set, usagenotes=%nrbquote(+

Only 14 observations here. The first obs has the U.S. totals, followed by the 4 U.S. region summaries and 9 U.S. divsion summaries.)); /* =======================Begin comment================ %doset(mode=,libname=sf32000x, memname=_template_us, memlabel=%nrbquote(~geoname summaries for entire United States), geouniv=%nrbquote(UnitedStates - including Puerto Rico), sortprio=3, units=~geoname, Year=2000, CreatePgm=cnvtsf3xus, Keywords=sf3 standard extract ~geoname US demographic indicators income education poverty 2000 census sample, Description=%nrbquote(Contains the standard demographic profile data for all ~geoname.s in the United States. Summary Level(s) ~sumlevs.. ), keyvars=sumlev county, keyfmats=sumlev county, keyquals=, DataSource=%str(2000 Census, Summary File 3.), SortedBy=, UsageNotes=%nrbquote(

See the "DP3_2K" and "DP3_2KT" profile report applications which utilize the data stored in this dataset.

The logrecno variable from the Summary File 3 record for the geographic entity is stored to allow linking back to original, complete SF3 data for the area (filetype sf32000).), SubType=3~set, SetGroup=us, VarSet=Variables, URLMeta=%str(https://mcdc.missouri.edu/pub/data/sf32000x/Variables.pdf), filters=, debug=1) options mprint; %let stab=us; %let set=places; %let geoname=Place; %let sumlevs=160; %doset(debug=1,libname=sf32000x,memname=us&set,template=_template_us,keyvars=sumlev state placefp lsadc, keyfmats=sumlev state fplace lsadc, keyquals=| | state |, usagenotes=%nrbquote(+

In census terminology place means either an incorporated city, town, village, etc. or something called a Census Designated Place

Unlike previous censuses there is no population threshold for cities to be reported on this national file.)); %let stab=us; %let set=mcds; %let geoname=MCD; %let sumlevs=060; %doset(debug=1,libname=sf32000x,memname=us&set,template=_template_us,keyvars=sumlev state county, keyfmats=sumlev state county,keyquals=| | |, Description=%nrbquote(Standard demographic profile data for all County Subdivisions (MCDs) in the United States. Summary Level 060. MCDs go by various other names such as Towns and Townships, varying by state.), usagenotes=%nrbquote(+

MCD stands for Minor Civil Division. Technically, not all the entities summarized on this set are MCDs because they are not governmental units. It varies from state to state and sometimes even within state (as in Missouri). In New England and other states, MCDs are called Towns and are important governmental units.)); %let set=zips; %let geoname=ZCTA; %let sumlevs=850; %doset(libname=sf32000x,memname=us&set,template=_template_us,keyvars=sumlev state,keyfmats=sumlev state, subtype=1&set, Description=%nrbquote(Standard demographic profile data for all 5-digt ZCTAs in the United States. ZIP Census Tabulation Areas are virtually the same as postal ZIP codes.), usagenotes=%nrbquote(+

For a detailed discussion of ZCTAs and ZIP codes see the All About ZIP Codes web page.

If you need data for the portion of a ZCTA within a county then you want SumLev 881, which is not on this US dataset but is available on state level files, some of which are in this data archive. See, for example, the mozips dataset.

The data as distributed did not contain a state code because these are supposed to be complete ZCTAs which can cross state boundaries. But this is rare and when it happens the ZCTA/ZIP is almost always more than 95 pct in one state. So we have added a state code by doing a table lookup. We have also added an Areaname field which is just to provide some indication of where the ZCTA is located based on what places (cities) it intersects with.)

If you are interested in summaries for 3-digit ZCTA areas see the uszip3s dataset. ) ; %let set=msas00; %let geoname=Metropolitan Area; %let sumlevs=380 381 385 386; %doset(libname=sf32000x,memname=us&set,template=_template_us,keyvars=sumlev msacmsa pmsa,keyfmats=sumlev metro metro, usagenotes=%nrbquote(+

These metro areas are as defined at the time of the census, April, 2000. To see the entities that make up the metro areas see the Bureau web page where they are reported. Most of the country defines metro areas in terms of entire counties, but in the 6 New England states they are comprised of towns. If you are interested in NECMAs (New England County-based Metro Areas), see the usothers dataset.

The Areaname variable for the 318 and 386 state portion summaries identify the state rather than the metro area. There will be a within-state summary observation even for metro areas that are entirely within a single state, in which case the complete-metro summary and the metro-within-state summary will have identical data.)); %let set=stcnty; %let geoname=State and County; %let sumlevs=040 050; %doset(libname=sf32000x,memname=us&set,template=_template_us,keyvars=sumlev state county,keyfmats=sumlev state county, SubType=1&set, usagenotes=%nrbquote(+

These are the counties and county equivalents as they were defined on April 1, 2000. There were changes during the decade of the 90s and there has been a change post-2000 in Colorado and Virginia. See http://www.census.gov/geo/www/tiger/ctychng.html for a detailed list of county changes.

See http://www.census.gov/geo/www/maps/stco_02.htm for access to state level county outline maps by the Census Bureau.

There are no geographic components summaries on this dataset. See the usgeocomps dataset if you are interested in component summaries.)); %let set=uas; %let geoname=Urbanized Area and Urban Cluster; %let sumlevs=400 410; %doset(libname=sf32000x,memname=us&set,template=_template_us,keyvars=sumlev state ua lsadc,keyfmats=sumlev state uauc2k lsadc, usagenotes=%nrbquote(+

Urbanized Area and Urban Cluster summaries intermixed.

For complete areas (SumLev 400) use the LSADC field to distinguish Urbanized Areas from Urban Clusters (75 and 76, respectively). This does not work for the within-state summaries (level 410) where the LSADC value is set to 01 to desribe the state instead of the UA or UC. The Areaname on 410 summaries is the name of the state instead of the UA or UC.

See www.census.gov/geo/www/ua/ua_2k.html for background and definition of these geographic entities.)); %let set=zip3s; %let geoname=3-Digit ZCTA Area; %let sumlevs=850; %doset(libname=sf32000x,memname=us&set,template=_template_us,keyvars=state,keyfmats=state, Subtype=1&set, usagenotes=%nrbquote(+

We added the state variable.)); %let set=other; %let geoname=Miscellaneous Geographic Units; %let sumlevs=170 230 250 251 252 253 254 255 256 260 262 264 290 370 371 372 373 380 381 385 386 430 460 462 464 500 850; %doset(libname=sf32000x,memname=us&set,template=_template_us,keyvars=sumlev,keyfmats=sumlev, SubType=4&set, usagenotes=%nrbquote(+Here is where we put summaries for all the levels that we felt did not need to be in a separate set.)); %let set=geocomps; %let geoname=Geographic Component; %let sumlevs=010 020 030 040; %doset(libname=sf32000x,memname=us&set,template=_template_us,keyvars=sumlev geocomp state,keyfmats=sumlev geocomp state, SubType=5&set, usagenotes=%nrbquote(+We removed the geographic component summaries from the other datasets to avoid confusion and put them all here is this single dataset with multiple geographic summary levels. To see data for the rural geographic component of the state of Missouri (for example) you would need to filter based on the component, the summary level and the state using
geocomp='43' and SumLev='040' and state='29' .)) ; ******************************************************************************************************* * Do custom Missouri datasets * *******************************************************************************************************; %let statenm=Missouri; %let stab=mo; %doset(mode=,libname=sf32000x, memname=_template_customgeo, memlabel=%nrbquote(~geoname summaries for ~statenm), geouniv=~statenm, units=~geoname, Year=2000, CreatePgm=, Keywords=sf3 standard extract ~geoname ~statenm demographic indicators income education poverty 2000 census sample, Description=%nrbquote(Contains the standard demographic profile data. These data have been custom allocated to these geographic units using data at the 090 and 085 summary levels by the staff of the Missouri Census Data Center. Summary Level(s): ~sumlevs.. ), keyvars=sumlev, keyfmats=sumlev, keyquals=, DataSource=%str(2000 Census, Summary File 3 - Special Allocation by MCDC.), SortedBy=, UsageNotes=%nrbquote(

See the "DP3_2K" and "DP3_2KT" profile report applications which utilize the data stored in this dataset.), SubType=5custom, SetGroup=~stab, VarSet=Variables, URLMeta=%str(https://mcdc.missouri.edu/pub/data/sf32000x/Variables.pdf), filters=, debug=0) %let stab=mo; %let statenm=Missouri; %let set=mocd108; %let geoname=Congressional District 108th; %let sumlevs=500; %doset(libname=sf32000x,memname=&set,template=_template_customgeo, geouniv=Missouri,CreatePgm=cnvtsf3x_moslds, usagenotes=%nrbquote(+

These are the MCDC allocated estimates, not the official tabulations released by the Bureau in March 2003)); %let set=mohouse; %let geoname=State House Districts as of 2002; %let sumlevs=620; %doset(libname=sf32000x,memname=&set,template=_template_customgeo, CreatePgm=cnvtsf3x_moslds) %let set=mosenate; %let geoname=State Senate Districts as of 2002; %let sumlevs=610; %doset(libname=sf32000x,memname=&set,template=_template_customgeo, CreatePgm=cnvtsf3x_moslds) %let set=moslds; %let geoname=State Legislative Districts as of 2002; %let sumlevs=610 620; %doset(libname=sf32000x,memname=&set,template=_template_customgeo, CreatePgm=cnvtsf3x_moslds) %let statenm=Missouri; %let set=molibdistcos; %let geoname=Library Districts within Counties; %let sumlevs=li2; %doset(libname=sf32000x,memname=&set,template=_template_customgeo, CreatePgm=cnvtsf3x_molibdists, keyvars=distcode county,keyfmats=| mocnty, keyidvars=areaname |, UsageNotes=%nrbquote(+Most districts are contained entirely in one county. The partflag variable can have values "y" or "n". "y" means that this summary represents just a part -- the part within the specified county -- of the entire library district. The AreaName field will then have a slash followed by the name of the county. For example: "Cameron Public Library/Clinton". This would be a summary for the portion of the Cameron PL that was located in Clinton County.)); %let set=molibdists; %let geoname=Library Districts; %let sumlevs=lib; %doset(libname=sf32000x,memname=&set,template=_template_customgeo, CreatePgm=cnvtsf3x_molibdists, keyvars=distcode,keyidvars=areaname, UsageNotes=%nrbquote(+We made up the SumLev code, as we do for most custom aggregations. The geocode and distcode variables have the same 3-character codes which were created by assigning them sequentially corresponding to alphabetical order by district name. Thus 001 is the code for the Adair County Public Library and 171 is the code for Wright County Library. There is also a pseudo-district summary with code 999 where we have data for the sum of all areas that are not located within any library district boundary.)) %let statenm=Missouri; %let set=moregns; %let geoname=County-Based Region; %let sumlevs=ded dot rpc umx; %doset(libname=sf32000x,memname=&set,template=_template_customgeo, CreatePgm=aggsf3_moregns, keyvars=sumlev rpc ded dot umx2, keyfmats=sumlev rpcname dedrgn modot umxname, description=%nrbquote(We created this collection of 4 different types of regions by aggregating county level summaries. We obtained the region codes of each type by county from the georef.mocogeos dataset, with values current as of 2002.), UsageNotes=%nrbquote(+We made up the SumLev codes, as we do for most custom aggregations. The geocode and region variables have the same 2- or 3-character codes (only the DED codes use all 3 digits; the DOT and RPC codes are 2 digits and the UMX2 codes are 2-characters.) For each observation, 3 of the 4 key variables (RPC, DED, DOT and UMX2) will be blank.

Some of these regions actually have portions in other states but these summaries are for the Missouri portions only.)); %let statenm=Missouri; %let set=moschls; %let geoname=School District; %let sumlevs=sdu sde; %doset(libname=sf32000x,memname=&set,template=_template_customgeo, CreatePgm=cnvtsf3x_moschls, keyvars=sumlev ncescode desedist , keyfmats=sumlev | |, keyidvars=| areaname areaname, description=%nrbquote(+We have two kinds of districts here, Unified and Elementary, which are mutually exclusive in Mo), UsageNotes=%nrbquote(+

In addition to the 522 actual district summaries there is a special pseudo-district summary for the sum of all areas not inside a Unified district. The geocode/ncescode for this area are assigned a value of 99999.

The districts are as defined at the time of the Census. We used the mable2k database as our source for linking census geography to school districts and mable2k was derived from SF1 geographic headers data at the block level.

The desedist variable contains the 6-digit codes used by the Mo Dept of Elementary and Secondary Education. The 5-digit ncescode (which is also copied as the value of geocode) is the official district code assigned by NCES.

There is no data for the St. Louis Special School District and others like it that have no geographic definition.

The datasets mosdelms and mosdunis are subset views of this dataset which select elementary and unified districts, respectively.)); %let set=moschlcos; %let geoname=School Districts within Counties; %let sumlevs=su2 se2; %let statenm=Missouri; %let stab=mo; %doset(libname=sf32000x,memname=&set,template=_template_customgeo, CreatePgm=cnvtsf3x_moschls, keyvars=sumlev county ncescode desedist , keyfmats=sumlev mocnty | desedst|, keyidvars=| | areaname |, description=%nrbquote(+We have two kinds of districts here, Unified and Elementary, which are mutually exclusive in Mo), UsageNotes=%nrbquote(+

Just as we have the single pseudo-district with code 99999 on the moschls dataset, here we have a series of observations at the end of the dataset that provide a breakdown of the non-Unified areas within counties. There are 50 of these. Use the filter ncescode ne '99999' to avoid these cases.

See notes for the moschls dataset.)); %let set=mosdelms; %let geoname=Elementary School District; %let sumlev=sde; %doset(libname=sf32000x,memname=&set,template=_template_customgeo, CreatePgm=cnvtsf3x_moschls, keyvars=sumlev ncescode desedist , keyfmats=sumlev | |, keyidvars=| areaname areaname, description=%nrbquote(+A subset view of the moschls dataset with Elementary districts only)); %let set=mosdunis; %let geoname=Unified School District; %let sumlev=sdu; %doset(libname=sf32000x,memname=&set,template=_template_geoview, CreatePgm=cnvtsf3x_moschls, keyvars=sumlev ncescode desedist , keyfmats=sumlev | |, keyidvars=| areaname areaname, description=%nrbquote(+A subset view of the moschls dataset with Unified districts only)); %let set=mosldcos; %let geoname=State Legislative District 2002 Within County; %let sumlev=61c 62c; %doset(libname=sf32000x,memname=&set,template=_template_customgeo, CreatePgm=cnvtsf3x_moslds); %let stab=mo; %let statenm=Missouri; %let set=mouaucs; %let geoname=Urbanized Area and Urban Cluster; %let sumlev=410; %doset(libname=sf32000x,memname=&set,template=_template_customgeo, keyvars=sumlev state ua, keyfmats=sumlev state uauc2k, CreatePgm= mouauc_view); ******************************************************************************************************* * Minnesota custom tabulated Legislative Districts (as of 2002) * *******************************************************************************************************; %let stab=mn; %let statenm=Minnesota; %let set=mncd108; %let geoname=Congressional District 108th; %let sumlevs=500; %doset(libname=sf32000x,memname=&set,template=_template_customgeo, CreateLib=%str(/pvt/projects/minnlds),CreatePgm=cnvtsf3x_mnslds, geouniv=Minnesota, usagenotes=%nrbquote(+

These are the MCDC allocated estimates, not the official tabulations released by the Bureau in March 2003)); %let set=mnhouse; %let geoname=State House Districts as of 2002; %let sumlevs=620; %doset(libname=sf32000x,memname=&set,template=_template_customgeo, CreateLib=%str(/pvt/projects/minnlds),CreatePgm=cnvtsf3x_mnslds) %let set=mnsenate; %let geoname=State Senate Districts as of 2002; %let sumlevs=610; %doset(libname=sf32000x,memname=&set,template=_template_customgeo, CreateLib=%str(/pvt/projects/minnlds),CreatePgm=cnvtsf3x_mnslds) %let set=mnslds; %let geoname=State Legislative Districts as of 2002; %let sumlevs=610 620; %doset(libname=sf32000x,memname=&set,template=_template_customgeo, CreateLib=%str(/pvt/projects/minnlds),CreatePgm=cnvtsf3x_mnslds) %let set=mnsldcos; %let geoname=State Legislative District Within County; %let sumlev=61c 62c; %doset(libname=sf32000x,memname=&set,template=_template_customgeo, CreateLib=%str(/pvt/projects/minnlds),CreatePgm=cnvtsf3x_mnslds) %let statenm=Missouri; %let set=moregns06; %let geoname=County-Based Region; %let sumlevs=aaa ded dot rpc umx; %doset(libname=sf32000x,memname=&set,template=_template_customgeo, CreatePgm=cnvtsf3x_moregns, keyvars=sumlev aaa rpc ded dot umx2, keyfmats=sumlev aaa rpcname dedrgn modot umxname, description=%nrbquote(We created this collection of 5 different types of regions by aggregating county level summaries. We obtained the region codes of each type by county from the georef.mocogeos dataset, with values current as of 2006.), UsageNotes=%nrbquote(+We made up the SumLev codes, as we do for most custom aggregations. The geocode and region variables have the same 2- or 3-character codes (only the DED codes use all 3 digits; the aaa, DOT and RPC codes are 2 digits and the UMX2 codes are 2-characters.) For each observation, 4 of the 5 key variables (AAA, RPC, DED, DOT and UMX2) will be blank.

Some of these regions actually have portions in other states but these summaries are for the Missouri portions only.)); %doset(libname=sf32000x, memname=uspumas, geouniv=United States, units=pumas, Year=2000, CreatePgm=cnvtsf3xus, Keywords=sf3 standard extract pumas nation demographic indicators income education poverty 2000 census sample, Description=%nrbquote(Contains the standard demographic profile data. These data have been custom allocated to these geographic units using data at the 090 summary levels by the staff of the Missouri Census Data Center. Summary Level(s): 795), keyvars=state sumlev, keyfmats=state sumlev, keyquals=, DataSource=%str(2000 Census, Summary File 3 - Special Allocation by MCDC.), SortedBy=State puma5, UsageNotes=%nrbquote(

), SubType=5custom, SetGroup=us, VarSet=Variables, URLMeta=%str(https://mcdc.missouri.edu/pub/data/sf32000x/Variables.pdf), filters=, debug=0) ======================End comment================== */ %doset(libname=sf32000x, memname=ustracts, geouniv=United States, units=tracts, Year=2000, CreatePgm=ustracts, Keywords=sf3 standard extract tracts nation demographic indicators income education poverty 2000 census sample, Description=%nrbquote(Contains the standard demographic profile data for all 2000 census tracts in the 50 states and DC.), keyvars=state sumlev msacmsa pmsa cbsa07, keyfmats=state sumlev metro pmsa cbsa, keyquals=, DataSource=%str(2000 Census, Summary File 3), SortedBy=State puma5, UsageNotes=%nrbquote(), SubType=1i, SetGroup=us, VarSet=Variables, URLMeta=%str(https://mcdc.missouri.edu/pub/data/sf32000x/Variables.pdf), filters=, debug=0) proc sort data=sf32000x.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 sf32000x.datasets '; run cancel; proc datasets library=sf32000x nolist; modify datasets; index delete dataset memname; index create dataset=(libname memname) / unique; index create memname; quit; options mprint msglevel=i; %gendshtm(libname=sf32000x,debug=1,runprocc=1);