x cd /pub/data/Tools; %let pgm=genaggs; filename pgm "&pgm..sas"; /* Invoke the genagg macro to generate a series of agg/sas modules in the Tools libraries of those filetypes. Only works, of course, for filetypes with a special Variables metadata set. jgb, 12-02 (start) */ title "&pgm: Generate SAS code Modules for Aggregating Filetypes"; options dkricond=warn; /*<=========================Comment out===================================== filename aggcode 'aggmodotx.sas'; &libname( modotx); %*genagg(libref=modotx,sascode=aggcode, setin=modotx.tracts,setout=modotx.mpos,aggby=mpo, grand=1,facvar=afact,dropvars=_lvl_ _nag_ obs logrecno,debug=1); ===========================End commented out================================ */ options mprint; %libname(stf903x2); %genagg(libref=stf903x2,sascode=, dropvars=_lvl_ _nag_,debug=1); %libname(sf32000x) %genagg(libref=sf32000x,sascode=, dropvars=_lvl_ _nag_ obs,debug=1);