Hi, Just run the code in reverse order...first run the SQL code and then try to run the data step code then you can find the difference. Data step code will show good performance. Solution 2: proc sql; create table wuTemp.CustTRBcur as select 'Version Date'n , 'HUB Cust Id'n , 'Last Month Average Balance'n from CNMAP.VIEW_MAPRH_M_CN_CUS_TRB where 'Version Date'n=&CurDate and 'Last Month Average Balance'n>=0; quit; Solution 1: DATA wuTemp.CustTRBcur (keep='Version Date'n 'HUB Cust Id'n 'Last Month Average Balance'n ) ; SET CNMAP.VIEW_MAPRH_M_CN_CUS_TRB ; where 'Version Date'n=&CurDate and 'Last Month Average Balance'n>=0; run; Thanks, Shiva
... View more