x cd /pub/data/sf32000/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, Apr., 2009 (this is the "do-over" version created after we lost our data and had to restore and/or reconvert it, spring, 2009. -- */ title "Job to Invoke doset Macro for Sets in sf32000, creating sf32000.datasets"; libname sf32000 '/pub/data/sf32000'; *-----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=sf32000,debug=0); *----------------------------------------------------------------------; %global todo; %*let todo=uspumas; %**let todo=mozips ilzips; %*let todo=moregns06ph morgns06phct moregns06phctr moregns06; %*let todo=usgeocompgeos usgeocompsgeos usgeocompsph usgeocompsphct usgeocompsphctr uscousubsgeo uscousubsph uscousubsphct uscousubsphctr; %let todo= usuasph usuasphct usuasphctr usmetrosph usmetrosphct usmetrosphctr uscds106ph uscds106phct uscds106phctr; %let statenm=Missouri; /* =======================Begin comment================ *==============================1-time Fix run to delete obsolete contents-only observations from datasets----; data sf32000.datasets_edited; set sf32000.datasets; where libname ne " "; run; *---ran this step (above) from DM. After which we deleted the old datasets data set and renamed datasets_edited to datasets.---; proc datasets library=sf32000 nolist; modify datasets; index delete dataset memname; index create dataset=(libname memname) / unique; index create memname; quit; ======================End comment================== */ %doset(mode=,libname=sf32000, memname=usgeos, memlabel=%nrbquote(Geographic variables only for all available U.S. summaries), geouniv=UnitedStates, units=Too many to list, Year=2000, CreatePgm=usgeos, Description=%nrbquote(Contains just the geographic ID fields as read from the Census Bureau usgeo3_uf3 file. We separated out the rows for geographic component summaries and stored those on the usgeocompgeos dataset. ), keyvars=SumLev state county placefp msacmsa pmsa ua msacmsa pmsa, keyfmats=sumlev state county fplace metro metro uauc2k metro pmsa, keyquals=| | | state | | | | |, keyidvars=, DataSource=%str(2000 Census, Summary File 3.), SortedBy=LogRecNo, UsageNotes=%nrbquote(), SubType=geos, SetGroup=us, VarSet=, URLMeta=%str(http://mcdc2.missouri.edu/pub/data/sf32000/Tools/usgeos_reports.html), debug=0) %doset(mode=,libname=sf32000, memname=usgeocompgeos, memlabel=%nrbquote(Geographic variables only for all summaries involving a geographic component summary), geouniv=UnitedStates, units=Geographic Components, Year=2000, CreatePgm=usgeos, Description=%nrbquote(Contains just the geographic ID fields as read from the Census Bureau usgeo3_uf3 file. We kept only the geographic component summaries on this dataset. ), keyvars=SumLev state geocomp, keyfmats=sumlev state geocomp, keyidvars=, DataSource=%str(2000 Census, Summary File 3.), SortedBy=LogRecNo, UsageNotes=%str(), SubType=geos, SetGroup=us, VarSet=, URLMeta=%str(http://factfinder.census.gov/home/en/epss/geo_components_2.html), debug=0) %doset(mode=,libname=sf32000, memname=usplacesgeos, memlabel=%nrbquote(Geographic variables only for place level summaries), geouniv=UnitedStates, units=Places, Year=2000, CreatePgm=cnvtsf3us, Description=%nrbquote(Contains just the geographic ID fields as read from the Census Bureau usgeo3_uf3 file. We kept only the place and place-within-county level data on this dataset. ), keyvars=SumLev state placefp, keyfmats=sumlev state fplace , keyquals=%str(| | state), keyidvars=, DataSource=%str(2000 Census, Summary File 3.), SortedBy=LogRecNo, UsageNotes=%str(), SubType=geos, SetGroup=us, VarSet=, URLMeta=, debug=0) %doset(mode=,libname=sf32000, memname=usregdivgeos, memlabel=%nrbquote(Geographic variables only for nation, region and division level summaries), geouniv=UnitedStates, units=Nation Region Division, Year=2000, CreatePgm=cnvtsf3us, Description=%nrbquote(Contains just the geographic ID fields as read from the Census Bureau usgeo3_uf3 file. We kept only the nation totals, Census region and divsion level data on this dataset. ), keyvars=SumLev geocomp, keyfmats=sumlev geocomp, keyquals=%str(| | ), DataSource=%str(2000 Census, Summary File 3.), SortedBy=LogRecNo, UsageNotes=%str(), SubType=geos, SetGroup=us, VarSet=, URLMeta=, debug=0) %doset(mode=,libname=sf32000, memname=usuasgeos, memlabel=%nrbquote(Geographic variables only for Urban Areas and UA-within-state level summaries), geouniv=UnitedStates, units=Urban Areas, Year=2000, CreatePgm=cnvtsf3us, Description=%nrbquote(Contains just the geographic ID fields as read from the Census Bureau usgeo3_uf3 file. We kept only the complete UA (400) and UA-within-state (410) levels on this dataset. ), keyvars=SumLev ua state, keyfmats=sumlev uauc2k state, keyquals=%str(| | | ), DataSource=%str(2000 Census, Summary File 3.), SortedBy=LogRecNo, UsageNotes=%str(), SubType=geos, SetGroup=us, VarSet=, URLMeta=, debug=0) %doset(mode=,libname=sf32000, memname=uszipsgeos, memlabel=%nrbquote(Geographic variables only for ZIP/ZCTA 3- and 5-digit levels), geouniv=UnitedStates, units=%str(3-digit ZCTA, 5-digit ZCTA), Year=2000, CreatePgm=cnvtsf3us, Description=%nrbquote(Contains just the geographic ID fields as read from the Census Bureau usgeo3_uf3 file. We kept only the complete 3-digit and 5-digit ZCTA levels on this dataset. ), keyvars=SumLev , keyfmats=sumlev , keyquals=%str(| ), DataSource=%str(2000 Census, Summary File 3.), SortedBy=LogRecNo, UsageNotes=%str(), SubType=geos, SetGroup=us, VarSet=, URLMeta=, debug=0) %doset(mode=,libname=sf32000, memname=moph, memlabel=%nrbquote(P and H tables for Missouri), geouniv=Missouri, units=%str(Many, down to BG), Year=2000, CreatePgm=cnvtsf3, Description=%nrbquote(Contains just the P and H tables for all MO geography levels down to Block Group), keyvars=SumLev geocomp county placefp msacmsa pmsa , keyfmats=sumlev geocomp county fplace metro metro , keyquals=| | | state | |, keyidvars=, DataSource=%str(2000 Census, Summary File 3.), SortedBy=LogRecNo, UsageNotes=%nrbquote( ), SubType=ph, SetGroup=mo, VarSet=Variablesph, URLMeta=%str(http://mcdc2.missouri.edu/pub/data/sf32000/Varlabs/Plabels.txt), debug=0) %doset(mode=,libname=sf32000, memname=mophct, memlabel=%nrbquote(PCT and HCT tables for Missouri), geouniv=Missouri, units=%str(Many, down to Tract), Year=2000, CreatePgm=cnvtsf3, Description=%nrbquote(PCT and HCT tables (exc PCTr & HCTr) for all MO geography levels down to Tract), keyvars=SumLev geocomp county placefp msacmsa pmsa , keyfmats=sumlev geocomp county fplace metro metro , keyquals=| | | state | |, keyidvars=, DataSource=%str(2000 Census, Summary File 3.), SortedBy=LogRecNo, UsageNotes=%nrbquote(These more detailed CT tables are not published for levels below Census Tract), SubType=phct, SetGroup=mo, VarSet=Variablesphct, URLMeta=%str(http://mcdc2.missouri.edu/pub/data/sf32000/Varlabs/PCTlabels.txt), debug=0) %doset(mode=,libname=sf32000, memname=mophctr, memlabel=%nrbquote(PCT and HCT tables for Missouri), geouniv=Missouri, units=%str(Many, down to Tract), Year=2000, CreatePgm=cnvtsf3, Description=%nrbquote(PCT and HCT tables by Race & Hispanic for all MO geography levels down to Tract), keyvars=SumLev geocomp county placefp msacmsa pmsa , keyfmats=sumlev geocomp county fplace metro metro , keyquals=| | | state | |, keyidvars=, DataSource=%str(2000 Census, Summary File 3.), SortedBy=LogRecNo, UsageNotes=%nrbquote(