BookmarkSubscribeRSS Feed
rodrigo_pereira
Obsidian | Level 7

Hello experts,

I'm trying to do a full join between two tables. 

 

However I need to aggregate these tables before the join. What is the best way to do this?

 

When I specify the "group by" and "sum" columns in the "Column Editor" I'm getting the following error:

 

"ERROR: Sort execution failure."

 

89 /* Drop existing table */
90 %vdb_dt(LASRLIB.DM_ARPU_CBU);
91 data LASRLIB.DM_ARPU_CBU ( );
92 set TEMP_LASR_VIEW_3313 ( );
NOTE: The query requires remerging summary statistics back with the original data.
93 run;

ERROR: Sort execution failure.

1 REPLY 1
LinusH
Tourmaline | Level 20
I think the aggregation fails because of discrepancies between the select and the group by statements. Hence the "remerging" note and then the sort failure which could depend on lack of memory.
Data never sleeps

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1134 views
  • 1 like
  • 2 in conversation