BookmarkSubscribeRSS Feed
psrajput
Obsidian | Level 7

While working with let say 2-3 million records, the proc means prints missing values for Median and other stats like p5, p10, etc., although that's not the case with min, max, mean, etc.

 

Is there a way to overcome this limitation?

 

Sample Query:

proc means data=lib.data n nmiss min mean median max;

run;

 

Edit: I can't share the data or output. There is no error or warning. I expect there is a limitation on the number of obs, after which SAS doesn't execute these stats, although n nmiss min mean max are printed without any issue. I have used macros to take stats of few variables at once, but that is too manual and I thought someone might know any trick to force SAS to execute it.

2 REPLIES 2
ballardw
Super User

Without example data and the log from running the program it isn't possible to diagnose. Do you get any "out of memory" notes or such?

 

Show CODE asking for those statistics plus mean max min for some of the variables. And the entire output plus the log.

 

 

FreelanceReinh
Jade | Level 19

Hi @psrajput,

 

One of the various suggestions in the 2019 thread "Calculating percentile for Huge data." might help in your case.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1221 views
  • 0 likes
  • 3 in conversation