Your explanations were not clear. Always show : this is what I have & this is what I want.
Like this?
data WANT;
length RESULT $1000;
RESULT= "(C1='y' and b1='N' and a1='y')" ;
RESULT=transtrn(RESULT,'C1=','CUSTOMER1=');
RESULT=transtrn(RESULT,'b1=','CUSTOMERB=');
putlog RESULT=;
run;
RESULT=(CUSTOMER1='y' and CUSTOMERB='N' and a1='y')
Don't forget to make your string longer.
... View more