OK. I was able to get it to work, although I'm not sure I completely understand. Even though I used COMPRESS for my superscript values, I was still getting a blank space at the beginning. So I tried SUBSTR, looking for the second character only. That worked! options validvarname=any; proc sql; create table work.DougTest (Drug char(50)); insert into work.DougTest values('Aspirin') values('Insulin'); run; proc sql; create table work.WithSuperscripts as (select Drug, strip(Drug)||substr(compress(kcvt('00b9'x,'utf-16be','utf-16be')),2,1) as Super1, strip(Drug)||substr(compress(kcvt('00b2'x,'utf-16be','utf-16be')),2,1) as Super2 from work.DougTest); proc sql print; select * from work.WithSuperscripts;
... View more