BookmarkSubscribeRSS Feed
Parashar
Calcite | Level 5


Hi,

I was doing sum for total monthly amount using group by and when I tried to validate the output of the program using simple sum in proc sql there was a difference in the sum for each month usd amount from $4 to $12, I was thinking may be due to some format ,then I applied the same formats but again difference was the same. then I tried using group by and sum it again it was matching , then for more testing I used proc means to sum the same column and I was surprised to see that now it was showing only one dollar difference.so my question is that why this difference is coming up when we use proc sql to sum a column  with group by and without group by.Is there any way to fix this issue.my data is too big approx 110gb for each month.

Thanks & Regards,

Saurabh Diwaker 

1 REPLY 1
art297
Opal | Level 21

There was another post here, recently, regarding a similar problem.  You may be trying to attain a sum that is a larger number than your machine can compute.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1514 views
  • 0 likes
  • 2 in conversation