Syntax is the same: TRANSTRN(source,target,replacement) With the same limitation one source, one target and one replacement string per call. Your example would require a separate call for each of: <b> </b> <ul> </ul> <li> </li> I don't work with trying to read HTML so I'm not sure of a better way. I suspect though you'd be better off doing this in a data step data work.plan; set work.plansvc (keep=benefit); benefit = transtrn(benefit, '<b>',''); /* that is 2 single quotes not a double quote*/ benefit = transtrn(benefit, '</b>',''); continue with each replacement. IF you have a lot of variables then use an array; data work.plan; set work.plansvc ; array v <list variables to process here>; do i = 1 to dim (v); v = transtrn(v,'<b>',''); v = transtrn(v,'</b>',''); <continue> end; drop i; run;
... View more