I hope this one help, because you want to replace ',' in string into '|' data dataset1; input value $ 1-150; datalines; Press Attache and Country Information Officer, Office of the U.S. Ambassador to Pakistan, U.S. Embassy in Pakistan, United States Department of State ; run; data dataset2; set dataset1; value = tranwrd(value,',','|'); run;
... View more