x cd /pub/data/stf903/Tools; %let pgm=ksbgs; filename pgm "&pgm..sas"; *---Create stf903.ksbgs: All bgs for state of Kansas. We then replace the old ksbgs3760 dataset with a view that references a subset of the new ksbgs set. JGB, Nov. 2003. Input in an old v6 dataset that we keep in the moi-ksi-ili-ssd01.zip archive. Fix view dataset, replacing bgs3760 with ksbg3760, 1-6-04 . ---*; libname stf903 '/pub/data/stf903'; /*<=========================Comment out===================================== libname stf903v6 v6 '/pub/data/stf903'; data stf903.ksbgs(label='Block Group summaries for KS' compress=yes index=(county)); set stf903v6.ksi(where=(slvl='150')); *<====This set will be deleted. But still in zip archive; run; proc datasets nolist library=stf903; modify ksbgs; index create msacmsa; quit; ===========================End commented out================================ */ proc sql; create view stf903.ksbg3760(label='KC, KS metro area BGs ') as select * from ksbgs where msacmsa='3760'; quit;