x cd /pub/data/stf902/Tools; %let pgm=invoke_dosets; filename pgm "&pgm..sas";
*---Create metadata for the stf902 filetype.
Coded by J. Blodgett, Nov. 2014
----;
libname stf902 '/pub/data/stf902';
%let todo=;
%**doset(mode=initialize,libname=stf902,debug=0);
%doset(mode=,libname=stf902,
memname=mostcopb5,
memlabel=%nrbquote(Mo State and County PB5 Data with chariters),
geouniv=Missouri,
units=%str(State county chariter),
Year=1990,
CreatePgm=,
Description=%nrbquote(Table PB5 is single year of age by sex for Missouri and its counties, with Chariters),
keyvars=county chariter,
keyidvars=county chariter,
keyquals=,
DataSource=%str(Census Bureau),
SortedBy=,
UsageNotes=%nrbquote(
- We do not have the setup that created this data set but it seems pretty obvious.
),
sortprio=5,
SubType=misc,
SetGroup=,
VarSet=pb5vars,
URLMeta=,
filters=,
debug=0)
%doset(mode=,libname=stf902,
memname=usatabs_filec,
memlabel=%nrbquote(A tables from the national (C) File),
geouniv=United States,
units=%str(state county place etc),
Year=1990,
CreatePgm=cnvt902a,
Description=%nrbquote(The A Tables National Collection),
keyvars=slvl geocomp state county msacmsa pmsa placefp,
keyfmats=sumlev geocomp state county metro metro fplace,
keyquals=%str( | | | | | | state),
DataSource=%str(Census Bureau),
SortedBy=,
UsageNotes=%nrbquote(- These are A Tables so they do NOT get repeated for chariters (characteristic iterations).
- There is a chariter variable on the dataset but it is always blank.
- Geographies summarized tend to be larger. Places have to be 10000+ pop to make it. MCDs under 10000 for selected states only.
No tracts or ZCTAs.
- Table prefixes used are HA and PA (housing and person tables).
- See companion dataset usBtabs_filec which has the HB and PB tables, repeated for chariters.
- This is the C or national file. The convert module name is misleading, it really should be cnvt902c.
),
sortprio=1,
SubType=atabs,
SetGroup=,
VarSet=,
URLMeta=%str(http://mcdc.missouri.edu/cgi-bin/uexplore?/pub/data/stf902/Docs),
filters=,
debug=0)
%doset(mode=,libname=stf902,
memname=usbtabs_filec,
memlabel=%nrbquote(The B tables from the national (C) File),
geouniv=United States,
units=%str(state county place etc),
Year=1990,
CreatePgm=cnvt902a,
Description=%nrbquote(These B Tables are repeated for Characteristic Iterations.),
keyvars=slvl geocomp chariter state county msacmsa pmsa placefp,
keyfmats=sumlev geocomp charitr state county metro metro fplace,
keyquals=%str( | | | | | | | state),
DataSource=%str(Census Bureau),
SortedBy=,
UsageNotes=%nrbquote(- These are B Tables so they get repeated for chariters (characteristic iterations).
- There is a chariter variable on the dataset that is always be relevant. (A value of 000 indicates total pop summary).
- The chariter codes used on this file are not the same as those used on STF2 and STF4 in the 2000 Census.
- Geographies summarized tend to be larger. Places have to be 10000+ pop to make it. MCDs under 10000 for selected states only.
No tracts or ZCTAs.
- Table prefixes used are HB and PB (housing and person tables).
- See companion dataset usAtabs_filec which has the HA and PA tables.
- This is the C or national file. The convert module name is misleading, it really should be cnvt902c.
),
sortprio=1,
SubType=btabs,
SetGroup=,
VarSet=,
URLMeta=%str(http://mcdc.missouri.edu/cgi-bin/uexplore?/pub/data/stf902/Docs),
filters=,
debug=0)
proc sort data=stf902.datasets out=bysortprio;
by SortPrio GeoUniv SetGroup SubType Memname ; run;
proc datasets library=stf902 nolist;
modify datasets;
index delete dataset memname;
index create dataset=(libname memname) / unique;
index create memname;
quit;
options NOmprint;
%gendshtm(libname=stf902,debug=0,runprocc=1);
%include sascode(notify);