x cd /mscdc/data/stf903/Tools; filename pgm 'usviews.sas'; *---create indices and views of the u.s. data set ("stf903c")--; * we create views for states, counties and places/cities--; * jgb, 11-94--; libname stf903 '/mscdc/data/stf903'; proc datasets library=stf903; modify us; * index create slvl; proc sql; create view stf903.usstates as select * from us where slvl='040' and geocomp='00'; create view stf903.ustotals as select * from us where slvl='010' and geocomp='00'; create view stf903.uscntys as select * from us where slvl='050'; create view stf903.uscities as select * from us where slvl='161'; create view stf903.usplaces as select * from us where slvl='161'; /* same as cities, just an alias */ run;