Hi Tom, Thanks for your input, you're right, I am trying to improve performance of the code. In the actual code, there are 10 SAS datasets in joins, the final ouput is in SAS and has about 14Million records, and took nearly two and a half hours to execute the code. I am just curious, would creating a macro variable help in anyway?? Something like this - %let new_col1 = %sysfunc(compress(transtrn(col1, "abcd", ""))); Proc sql; select A.* from Table1 A join Table2 B on &new_column. = B.col2; Quit; Please let me know your thoughts. Thanks!
... View more