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?
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).
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.
Pull the table into a SAS dataset, do a proc contents on it, and then repeat the sort.
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).
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
proc sort ....... sortsize=3G tagsort ;
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.