data want;
string="test1::test2::test3::test4::test5::";
wanted_string=tranwrd(string,'::',',');
/* Remove final comma */
if substr(wanted_string,length(wanted_string))=',' then wanted_string=substr(wanted_string,1,length(wanted_string)-1);
run;
-- Paige Miller
SAS Innovate 2025: Save the Date
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!