*There is a earlier topic describing how to replace multiple targets using tranwrd in a loop function. Unfortunately it is somehow not working for all types of Words that I want to replace. In the below code I want to remove. "koncern-LK.ramme" but the function fails to do so. Does anybody know what I am doing wrong?. Thx data x; set y; newName = OldName; do word="kon.-LK", "koncern-LK.ramme"; newName = tranwrd(' '||newName, ' '||strip(word)||' ', ' '); end; newName = compbl(newName ); drop word; run;
... View more