x cd /pub/data/stf901/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, Feb, 2004
-- */
title "Job to Invoke doset Macro for Sets in stf901, creating stf901.datasets";
libname stf901 '/pub/data/stf901';
%let filetype=stf901;
*-----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=stf901,debug=1);
*----------------------------------------------------------------------;
%doset(mode=,libname=&filetype,
memname=stltras,
geouniv=stlmo90,
units=tra,
Year=1990,
CreatePgm=,
Keywords=stf901 1990 census summary file 1 tra tract areas st louis,
Description=%nrbquote(Complete stf1 tables for St. Louis metro west area at the Tract Area level),
keyvars=puma tra,
keyfmats=| traname,
keyquals=,
DataSource=%str(1990 Census - Summary Tape File 1),
SortedBy=,
UsageNotes=%nrbquote(
- TRA's are the invention of the Urban Information Center at UMSL and the St. Louis
County Planning Dept.
- See report showing how the
TRAs nest within county and what 90 tracts comprised each.
- PUMAs are the official 5pct PUMA codes used in 1990 PUMS files, but the codes were invented by the UIC. 1st digit
if the PUMA code corresponds to the county: 1=St Louis City 2=St Louis co. 3=St Charles 7=Franklin + Jefferson.
- The same geographic entities are used by OSEDA/MCDC to tabulate 2000 census data. The underlying tracts have
changed but not the TRAs.
),
SubType=,
SetGroup=tra,
VarSet=,
URLMeta=,
filters=,
debug=1)
%doset(mode=,libname=&filetype,
memname=stlpumas,
geouniv=stlmo90,
units=puma,
Year=1990,
CreatePgm=,
Keywords=stf901 1990 census summary file 1 puma st louis,
Description=%nrbquote(Complete stf1 tables for St. Louis metro west area at the PUMA level. Aggregated
by the Urban Information Center at UMSL from tract level data.),
keyvars=puma county,
keyfmats=| county,
keyidvars=areaname |,
DataSource=%str(1990 Census - Summary Tape File 1),
SortedBy=,
UsageNotes=%nrbquote(
- See report showing how the
TRAs nest within county and these PUMAs.
- PUMAs are the official 5pct PUMA codes used in 1990 PUMS files, but the codes were invented by the UIC. 1st digit
if the PUMA code corresponds to the county: 1=St Louis City 2=St Louis co. 3=St Charles 7=Franklin + Jefferson.
- The county code for the 7FJ PUMA code is 29099 (Jefferson) but in fact this PUMA spans Franklin and Jefferson.
),
SubType=,
SetGroup=tra,
VarSet=,
URLMeta=,
filters=,
debug=1)
proc sort data=stf901.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 stf901.datasets (Sorted by SortPrio)';
run ;
proc datasets library=stf901 nolist;
modify datasets;
index delete dataset memname;
index create dataset=(libname memname) / unique;
index create memname;
quit;
options mprint msglevel=i;
%gendshtm(libname=stf901,debug=1,runprocc=1);