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

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 856 views
  • 1 like
  • 2 in conversation