BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Christina96
Calcite | Level 5

Hi all, I am new to SAS. Now I am using Windows 10 and SAS 9.4.

I used the the proc univariate procedure and I encoutered a problem.

Here is my code:

proc univariate data=summer plot normal; 
var a; 
freq b; 
run;

The dataset has more than 16000 observations.

A error message popped up:

ERROR: Internal error in Java extension NewDoubleArray().

ERROR: Java virtual machine exception. java.lang.OutOfMemoryError: Java heap space.

ERROR: Java virtual machine exception. java.lang.OutOfMemoryError: Java heap space.

NOTE: The SAS System stopped processing this step because of errors.

NOTE: PROCEDURE UNIVARIATE used (Total process time):

real time 4:51.49

cpu time 4:31.76

It took near 5 minutes to process this. It's very strange. I checked the forum and tried this https://support.sas.com/kb/31/184.html. But it didn't help. How can I solve this? 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
andreas_lds
Jade | Level 19

This could be caused by using "plot"-option, can you verify that you won't get that error when using proc univariate without "plot"? But contacting tech support seems to be the best/fastest way to get a working solution.

View solution in original post

2 REPLIES 2
ChrisNZ
Tourmaline | Level 20

2 solutions: 

- Increase the JRE memory to a high value

- Contact Tech Support

andreas_lds
Jade | Level 19

This could be caused by using "plot"-option, can you verify that you won't get that error when using proc univariate without "plot"? But contacting tech support seems to be the best/fastest way to get a working solution.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 1489 views
  • 0 likes
  • 3 in conversation