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(), 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(), 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);