x cd /mscdc/data/stf903x/Tools; %let pgm=patch.caplaces; *<-jgb; filename pgm "&pgm..sas"; libname stf903xp '/mscdc/data/stf903x/slvl160.bystate'; *<--jgb; *--per feedback from web user we discovered a missing place (Woodland, CA) in our slvl160.bystate/caplaces.ssd01 dataset. So in this setup we apply a "patch" to that dataset by retrieving and adding any places on the stf3c dataset not found on the original. We temporarily call the new set caplace2 -- BUT WE SHALL DELETE THE ORIGINAL CAPLACES SET AND RENAME THE CAPLACE2 SET INTERACTIVELY ONCE PROGRAM IS VERIFIED TO RUN OKAY--; *--10-12-97, jgb--; title 'PATCH.CAPLACES: Add new observations to stf903x.caplaces'; data stf903xp.caplace2(label='Edited version with places added'); merge stf903xp.caplaces(in=ok) stf903x.us(in=in3c where=(slvl='161' and state='06')); by place; if not ok then do; put '**Adding observation for ' areaname +1 place= totpop=; slvl='160'; end; keep slvl--yr; run; proc datasets library=stf903xp ; run;