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
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.