@Kaos wrote:
I am just curious, would creating a macro variable help in anyway?? Something like this -
%let new_col1 = %sysfunc(compress(transtrn(col1, "abcd", "")));
That will NOT help and in fact would make the program not work as intended. If you try creating that macro vraiable you will see that it always has just the value col1. So the generated SQL code will only have the column name and will no longer contain any code to convert the value of the column to make the comparison in the way that you wanted.
... View more