I have a long string like this "fruits: mangovegetables: carrotdrinks: cokeseafood: fishrestaurant: jasmineplace: London" But I am trying to add "." (dot) so that I can differentiate which category they are and the expected string is as below "fruits: mango.vegetables: carrot.drinks: coke.seafood: fish.restaurant: jasmine.place: London" I tried like something data want; set have; _list = o_list; length word $200 ; do word='vegetables:', 'drinks:', 'seafood:', 'restaurant:', 'place:' ; n_list = tranwrd(n_list, strip(word), .word); end; n_list = compbl(n_list); drop word ; run; but they are doing nothing to the string. same string with out transwrd. Appreciate your help Guru's Thanks in advance
... View more