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.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
Register now!
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.