x cd /pub/data/sf12000/Tools; %let pgm=newviews; filename pgm "&pgm..sas"; *<====mo only===; *****Never mind.... Going to a whole new conversion scheme where we keep geos with data*****; *---Experiment with new view defns for xxph, xxpct and xxpct12r that will be faster to access using indices defined on the "ng" data sets. John Blodgett, OSEDA, U. of Missouri Under contract with the Missouri Census Data Center. ---*; *-------Revision history: 01-2002: Begin coding. --------*; %let inpath=%str(/pub/data/sf12000); title 'Experiment with newviews on sf12000 Data Sets'; libname sf12000 "&inpath"; *<===========output sas data sets stored is same dir as input files======; libname sf1 "&inpath"; *--You can use alternate name if you want. Mix and match--; options msglevel=i; *--create new version of ph and pct datasets with sumlev and county added--; proc datasets library=sf1 nolist; modify mophng; index create SumLev; index create County; index create CntySum=(county sumlev); modify mogeos; index create geo_id/unique; quit; data sf1.mophx(label='Mo P and H tables with geography')/view=sf1.mophx; set "&inpath/mophng"; *_ptr=geo_id; set "&inpath/mogeos" key=geo_id; run; *-------Test ability to access the new views, taking advantage of the new indices on mophng to speed it up---; data boonetracts; set sf1.mophx(keep=_char_ p12i1-p12i49 p1i1); where county='29019' and sumlev='140'; run;