Using compress with the whole alphabet at the first argument, your text as second argument, and 'k' modifier to keep letters for the alphabet as they appear. data test;
input fname $ sname $ ;
datalines;
John Smith
Tom Bell
;
data test;
set test;
fullname = cats(fname, sname);
fullname2 = compress('AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz', fullname, 'k');
run;
... View more