Data dsn;
X='america';
run;
I want Output like
AmeRiCa
If so, then do something like this
data _null_; string="america"; newstring=translate(string, "ARC", "arc"); put string= // newstring=; run;
View solution in original post
What is the logic here? Do you want to consequently Upcase the letters A, R and C?
If there is a logical rule for this conversion, you need to tell us that, so we can translate it into code.
If there is no logical rule, then there's no base for any code.
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.