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(
- Since only populations over 65,000 are included do not
expect the data to sum to correct subtotals in most
cases. For example, in most states there will be one
or more counties with a population less than 65000 and
therefore those counties will not show up in this
dataset and a sum of those counties will not give the
same totals as the values for the state.
- Margin of Error, (MOE) values are included for most
variables. A MOE variable ends with _MOE and is prefixed
with the variable name the MOE is related to. For
example, if we have a variable called TotPop the corresponding
variable containing the MOE for that item is named TotPop_moe.
- Be mindful when comparing two different
geographic areas to also factor in the MOEs since most
variables are estimates and there could be statistically
some error in those values. For example, if Area A has a
population of 5000 with a MOE of 1000 and Area B has a
population of 7000 with a MOE of 2000 just comparing
the values of 7000 and 5000 we would say that Area B has
a greater population but when you factor in the MOEs
Area A could possibily have a population ranging from
4000 - 6000 and Area B could have a population ranging
from 5000 - 9000. Since there is an overlap statisticians would say
that the difference is not statistically significant.
- Some items in this dataset were derived from data contained in the detailed base tables
which are stored in the summary subdirectory.
),
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(This dataset contains key indicators
for all 41 MO PUMAs and the state of Missouri.
- An excel file named key_indicators.xls contains the
same data as this dataset, if someone prefers excel.
The excel file is located in the acs2006 directory.
),
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);