Hi I have a macro variable called list when I used tranwrd it matches everything
%let list=apple ball cats bapplee;
%let i=1 ;
%let dependent=%scan(&list,&i," ");/* list of dependent variable*/
%let independent = %sysfunc(tranwrd(&list, &dependent.,%str()));
%put &dependent;
%put &independent;
Result I am getting is ball cats b e
Result I want is ball cats bapplee
How can I get the expected result?
Thank you,
Shone