%macro reset(set,quiet=0); %*--utility macro is passed the name of a sas data set which must be of type data. The exist function is used to determine if the set exists. If it does, a data step is run that will "null out" the set, i.e. copy it onto itself with 0 observations. John Blodett, oseda, May, 2002.--*; %if %sysfunc(exist(&set)) %then %do; data &set; set &set; stop; run; %if &quiet=0 %then %put &set dataset has been set to empty; run; %end; %else %if quiet=0 %then %put &set does not exist; %mend reset;