Here is the code. It doesn't seem to be removing (replacing with blank) the strings that I am providing as the last parameter in the macro call. Anyone have any ideas. I've tried slight variations but with no luck. %macro word_removal(tbl_in, tbl_out, first_field, second_field, str_list);
data &tbl_out;
set &tbl_in;
%do i = 1 %to %sysfunc(countw(&str_list.));
%let current_str = %scan(&str_list., &i.);
&second_field = tranwrd(&first_field, "¤t_str.", '');
%end;
run;
%mend word_removal;
%word_removal(input_table, output_table, field_one, field_two, ('hello','world','beta','alpha')); Thanks
... View more