Hello,
I have a table t1 that holds 3 millions rows (with one datetime) and a table t2 that holds 5 millions rows (with 2 datetime)
In a proc sql, i have a join like this
select ...
FROM t1 AS a LEFT JOIN t2 AS b
ON a.IDT_RSS=b.IDT_RSS
AND a.TSP_CVL BETWEEN b.TSP_TEST_DEB AND b.TSP_TEST_FIN
;
cpu times takes 23 minutes. How coul I optimize ?
thanks a lot in advance
nasser
Tell us a little more about your data.
And some additional info: what variables are contained in the datasets, what are their types and defined lengths?
Hello Kurt
thanks a lot for your respons and sorry for answering in late.
we succeeded to solve the problem by reducing the scope.
instead of collect and treat all rows each times, we treat only one month each month.
I mean we treat only missing data in target (versus source), instead of remove and replace.
Thanks a lot
regards
Nasser
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.