data test ; x="Math A English B Physics A"; y=compress(x,'ABCD','k'); put y; run; The value of 'y' written in log is :
ABA
Math A English B Physics A
a A B A
aABA