x cd /pub/data/acs2006/Tools; %let pgm=invoke_dosets; filename pgm "&pgm..sas"; /*--Invoke the %doset macro to create observations in the Datasets dataset for this directory. BCE, OSEDA, Jan, 2008 Minor mods by JGB, Feb, 2008. (we originally stored this in the georef data directory and had to move it here a month later, 3-13-08) -- */ title "Job to Invoke doset Macro for Sets in acs2006, creating acs2006.datasets"; libname acs2006 '/pub/data/acs2006'; *-----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=acs2006,debug=1); *----------------------------------------------------------------------; *options nosource; options mprint; %***let todo=key_indicators; %doset(mode=,libname=acs2006, memname=usmcdcprofiles, sortprio=3, memlabel=%str(American Community Survey 2006 Profiles), geouniv=United States, units=nation state county place puma CBSA CD, Year=2006, CreatePgm=cnvt_census_to_mcdc, Keywords=acs 2006 missouri puma, Description=%nrbquote(These data were released in the summer and fall of 2007 and are the tabulated results of the surveys for the 2006 calendar year. Unlike the 2005 tabulations these include persons in group quarters as part of the universe. These data are still available only for geographic entities of 65,000 or more population. Our collection includes data for the entire U.S. and includes complete detailed profile datasets that are similar to the data found in the Census Bureau's profile reports accessible via American FactFinder.), keyvars=geoid sumlev state, keyfmats=| sumlev state, keyquals=, keyidvars=areaname, DataSource=%str(Census Bureau data released August 2007), SortedBy=geoid, UsageNotes=%nrbquote(), SubType=, SetGroup=, VarSet=, debug=1); %doset(mode=,libname=acs2006, memname=key_indicators, sortprio=5, memlabel=%str(Key Indicators for Missouri PUMAs), geouniv=MO, units=puma, Year=2006, CreatePgm=key_indicators, Keywords=acs 2006 missouri puma key indicator, Description=%nrbquote(These data represent key indicators for all 41 pumas and also for the state of Missouri. The source of the data is ACS2006. Some of the indicators are total population, hispanic population, Population over 65, median household income, percent poor, persons over 25 with a college degree, percent of housing units built after 2000, average house value, percent unemployed, etc.), keyvars=esriid puma5, keyfmats=, keyquals=, keyidvars=areaname areaname, DataSource=%str(Census Bureau data released August 2007), SortedBy=esriid, UsageNotes=%nrbquote(), SubType=, SetGroup=, VarSet=, debug=1); proc sort data=acs2006.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 acs2006.datasets (Sorted by SortPrio)'; run ; proc datasets library=acs2006 nolist; modify datasets; index delete dataset memname; index create dataset=(libname memname) / unique; index create memname; quit; options NOmprint msglevel=i; **include '/pub/sas/macros/gendshtm.sas'; %gendshtm(libname=acs2006,debug=1,runprocc=1);