lord12
lord12

Reputation: 2917

How to rectify an error message I am observing?

I am receiving an error message after running the macro %better_means but I am not sure what options I have to change for the summary statistics to be calculated properly.

WARNING: A shortage of memory has caused the quantile computations to terminate prematurely for QMETHOD=OS. Consider using 
             QMETHOD=P2.
    NOTE: The affected statistics will be missing from the corresponding classification levels.
    WARNING: A shortage of memory has caused the quantile computations to terminate prematurely for QMETHOD=OS. Consider using 
             QMETHOD=P2.
    NOTE: The affected statistics will be missing from the corresponding classification levels.
    NOTE: Processing on disk occurred during summarization. Peak disk usage was approximately 9 Mbytes. Adjusting SUMSIZE may improve 
          performance.

Upvotes: 0

Views: 1506

Answers (1)

Joe
Joe

Reputation: 63424

That's caused by the fact that quantile (and percentile) calculations require a lot of memory to run with the default method of calculating them (basically, lining everything up and then finding the 5% mark etc.) If you have a lot of data, or you have a lot of variables or class variables, you may run into this. Consider either separating your runs into multiple steps (perhaps do some class variables in one proc means and some in another), or increasing the amount of memory available to SAS.

Upvotes: 1

Related Questions