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

My data is stored in Oracle table MY_DATA. This table contains only 2 rows with 7 columns. But when I execute step:

proc sort data=oraclelib.MY_DATA nodupkey out=SORTED_DATA;
by client_number;
run;

the following error appears:

 ERROR: The SAS System stopped processing this step because of insufficient memory.

If I comment nodupkey option then error disappears. If I copy dataset in work library and execute proc sort on it then everything is OK too.

My memory options:

SORTSIZE=1073741824
SUMSIZE=0
MAXMEMQUERY=268435456
LOADMEMSIZE=0    
MEMSIZE=31565617920
REALMEMSIZE=0

What can be the root of the problem and how can I fix it?

1 ACCEPTED SOLUTION

Accepted Solutions
Patrick
Opal | Level 21

I suggest you open a track with SAS TechSupport as memory shouldn't really be an issue with Proc Sort.

 

One thing you could check:

Is the password for your Oracle connection in grace period? Strange things can happen if this is the case (at least this was true for older SAS versions).

View solution in original post

5 REPLIES 5
SASKiwi
PROC Star

Try running your program with the FULLSTIMER SAS option to report on how much memory SAS is using.

 

Also your LIBREF oraclelib is 9 characters long when 8 is the maximum - is this a typo?

 

I suspect your sort is happening entirely in SAS as you specify the NODUPKEY option. You could always read the data out of Oracle in a DATA step, then sort separately.

Patrick
Opal | Level 21

I suggest you open a track with SAS TechSupport as memory shouldn't really be an issue with Proc Sort.

 

One thing you could check:

Is the password for your Oracle connection in grace period? Strange things can happen if this is the case (at least this was true for older SAS versions).

DmitryErshov
Obsidian | Level 7

Thans all!

 

Patrick,

its a magic but you are absolutely right! My password was in grace period and when I changed it the issue disappeared!

 

Regards,

Dmitry

 

 

Ksharp
Super User

proc sort .......  sortsize=3G  tagsort ;

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 5 replies
  • 3492 views
  • 11 likes
  • 5 in conversation