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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

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