Imagine that we have ""Name"":""Alain"" in a variable called info.
I would like to replace "" for ", so I will get "Name":"Alain"
I have tried this but it does not works
Data Info_1;
set Info_1 ;
Info=tranwrd(Info,"""",""");
run;
How do we do that ?
Hi,
Have you tried surrounding the text with single quotes instead?
Data Info_1;
set Info_1 ;
Info=tranwrd(Info,'""','"');
run;
Thanks & kind regards,
Amir.
Hi,
Have you tried surrounding the text with single quotes instead?
Data Info_1;
set Info_1 ;
Info=tranwrd(Info,'""','"');
run;
Thanks & kind regards,
Amir.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.