/*----- * group: Data management * purpose: Delete a data set or view * notes: Emits a Proc SQL */ %macro delete (DS); %if %sysfunc (exist (&DS)) %then %do; proc sql noprint; drop table &DS; quit; %end; %else %if %sysfunc (exist (&DS, VIEW)) %then %do; proc sql noprint; drop view &DS; quit; %end; %mend delete;