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: 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!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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