x cd /pub/data/corrlst/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, Jan., 2003 -- */ libname corrlst '/pub/data/corrlst'; libname cl (corrlst); *-----Run this step ONLY ONCE------------------------------------------; %*doset(mode=initialize, libname=corrlst,memname=badblks,debug=1); ; %*let todo=zip07_cbsa06 ; *<=======================================================================; %let todo=zip_2_zcta10; *<=====9-8-14============================================================; /* ========================begin comment==================================== %doset(libname=corrlst, memname=zip07_cbsa06, memlabel=%str(ZIP/ZIP+2/ZIP+4 to CBSA circa 2007), geouniv=UnitedStates, units=%str(ZIP ZIP+2 ZIP+4/CBSA), Year=2007, CreatePgm=zip07_cbsa06, Keywords=ZIP CBSA county equivalency correlation 2007, Description=%nrbquote(This data set can be used to associate vintage 2007 ZIP code areas with 2006-vintage micropolitan and metropolitan statistical areas (aka CBSAs). Each obs represents a 5-digit ZIP and an optional single or interval of 2 or 4-digit ZIP subareas. These are correlated with a combination of county, CBSA, Metropolitan Division and Combined Statistical Area codes and names.), keyvars=state county cbsa metrodiv csa, keyfmats=state county cbsa metrodiv csa, keyquals=, DataSource=%str(Census Bureau), SortedBy=state zip5 zipsfxs, UsageNotes=%nrbquote(), URLMeta=%str(http://www.census.gov/population/www/metroareas/files/zip_cbsa_doc.txt), debug=0) ; %doset(libname=corrlst, memname=moplco2k, memlabel=%str(Missouri Place to County, 2000), geouniv=Missouri, units=%str(Place/County), Year=2000, CreatePgm=place_to_county, Keywords=place county equivalency correlation 2000, Description=%nrbquote(Use this dataset to see what county or counties each place (city) is associated with. If a place is associated with more than one county then there will be more than one observation for the place. The dataset is sorted so that the first observation for a place has the "primary" county identified, i.e. the county with which the place has the largest intersection.), keyvars=placefp county, keyfmats=fplace county, keyquals=state |, DataSource=%str(2000 Census - Public Law File 94 Geographic Headers file), SortedBy=placefp descending pop100, UsageNotes=%nrbquote(), SubType=SSplco2k, SetGroup=, VarSet=, URLMeta=, filters=, debug=1) %doset(libname=corrlst, memname=ksplco2k, memlabel=%str(Kansas Place to County, 2000), geouniv=Kansas, units=%str(Place/County), Year=2000, CreatePgm=place_to_county, Keywords=place county equivalency correlation 2000, Description=%nrbquote(Use this dataset to see what county or counties each place (city) is associated with. If a place is associated with more than one county then there will be more than one observation for the place. The dataset is sorted so that the first observation for a place has the "primary" county identified, i.e. the county with which the place has the largest intersection.), keyvars=placefp county, keyfmats=fplace county, keyquals=state |, DataSource=%str(2000 Census - Public Law File 94 Geographic Headers file), SortedBy=placefp descending pop100, UsageNotes=%nrbquote(), SubType=SSplco2k, SetGroup=, VarSet=, URLMeta=, filters=, debug=1) %doset(libname=corrlst, memname=usplco2k, geouniv=UnitedStates, units=%str(Place/County), Year=2000, CreatePgm=place_to_county, Keywords=US place county equivalency correlation 2000, Description=%nrbquote(Use this national dataset to see what county or counties each place (city) is associated with. If a place is associated with more than one county then there will be more than one observation for the place. The dataset is sorted so that the first observation for a place has the "primary" county identified, i.e. the county with which the place has the largest intersection.), keyvars=placefp county state Primary, keyfmats=fplace county state, keyquals=state , DataSource=%str(2000 Census - Public Law File 94 Geographic Headers file), SortedBy=State placefp descending pop100, UsageNotes=%nrbquote(), debug=1) %doset(libname=corrlst, memname=us_stzcta5_county, geouniv=UnitedStates, units=%str(State/ZCTA5/County), Year=2000, CreatePgm=us_stzcta5_county, Keywords=US 5-digit ZIP ZCTA county equivalency correlation 2000, Description=%nrbquote(U.S. ZCTA5 (within state) to County equivalency dataset. Can be used to determine what county or counties each ZCTA5 falls within and what the 2000 census population was for each ZIP/County intersection.), keyvars=county state rank, keyfmats=county state , keyquals=, DataSource=%str(2000 Census - Summary File 1 Geographic Headers file), SortedBy=State ZCTA5 descending pop100, UsageNotes=%nrbquote(), SubType=, SetGroup=us, debug=1) %doset(libname=corrlst, memname=moco2mpo, geouniv=Missouri, units=%str(County/MPO), Year=2000, CreatePgm=moco2mpo, Keywords=county MPO equivalency correlation 2000, Description=%nrbquote(Shows how Missouri counties relate to Metro Planning Organizations based on cenus 2000 population.), keyvars=county mpo, keyfmats=county mponame, keyquals=, DataSource=%str(Derived from the moblk2mpo Equivalency dataset in this directory), SortedBy=county mpo, UsageNotes=%nrbquote(), SubType=, SetGroup=us, debug=1) ===========================End commented out================================ */ %doset(libname=corrlst,memname=zip_2_zcta10,Description=%str(5-digit US ZIP Codes related 2010 ZCTA codes), geouniv=UnitedStates,units=%str(ZIP/ZCTA), Year=2010, Createpgm=zip2zcta, datasource=%str(John Snow, Inc), sortedby=zip, UsageNotes=%nrbquote(), keyvars=ziptype stab, debug=0); /*<=========================Comment out===================================== %doset(libname=corrlst,memname=mozctacd113, Description=%str(Relates 2010 5-digit ZIP Codes to 113th (elected 2012) Congressional District for Mo), geouniv=Missouri,units=%str(ZCTA/CDs), Year=2012, Createpgm=mozip2cdslds2012, sortedby=zcta, UsageNotes=%nrbquote(), debug=0); %doset(libname=corrlst,memname=mozctahouse12, Description=%str(Relates 2010 5-digit ZIP Codes to Missouri House (state legislative) districts as redrwan in 2011.), geouniv=Missouri,units=%str(ZCTA/SLDLs), Year=2012, Createpgm=mozip2cdslds2012, datasource=Missouri redistricting committee, sortedby=zcta, UsageNotes=%nrbquote(), debug=0); %doset(libname=corrlst,memname=mozctasenate12, Description=%str(Relates 2010 5-digit ZIP Codes to Missouri Senate (state legislative) districts as redrwan in 2011.), geouniv=Missouri,units=%str(ZCTA/SLDUs), Year=2012, Createpgm=mozip2cdslds2012, datasource=Missouri redistricting committee, sortedby=zcta, UsageNotes=%nrbquote(), debug=0); %doset(libname=corrlst,memname=moblk2cdslds2011, Description=%str(Relates 2010 Missouri census blocks to each of the 3 redrawn voting districts for 2011: CDs, state House & Senate), geouniv=Missouri,units=%str(block cd113 slds), Year=2012, Createpgm=cnvt_blkequivs_mocdslds2012, sortedby=county tract block, UsageNotes=%nrbquote(), debug=0); ==========================end comment====================================== */ %doset(libname=corrlst,memname=uscntypuma12, Description=%str(Relates US counties to post-2010 PUMAs), geouniv=United States,units=%str(county puma), Year=2012, Createpgm=uscntypuma12, sortedby=state county, UsageNotes=%nrbquote(), debug=0); proc sort data=corrlst.datasets out=bysortprio; by sortprio; run; proc print data=bysortprio; by libname notsorted libpath ; id memname; var SortPrio SetGroup SubType VarSet URLmeta GeoUniv years ; title2 'Listing of Selected Fields from corrlst.datasets (Sorted by SortPrio)'; run ; proc datasets library=corrlst nolist; modify datasets; index delete dataset memname; index create dataset=(libname memname) / unique; index create memname; quit; options mprint msglevel=i; %gendshtm(libname=corrlst,debug=1,runprocc=1);