Hi Everyone, I have the following data set: Code used to create above data set is: data Questions; length Question $100 Name $20; infile datalines dlm=','; input Question $ Name $ ; cards; When was your last interaction with Pablo Matinee,Pablo Matinee When was your last interaction with Lucien Koku,Lucien Koku ; I want to replace every occurrence of the customer Name in the Question with [Name]. So what i intend to achieve is this: What i have written so far is: data New; set Questions; tranwrd(Question,Name,"%str(%[)Name%str(%])"); run; but this has not worked. Please can anyone suggest a solution? Thanks,
... View more