BookmarkSubscribeRSS Feed
LineMoon
Lapis Lazuli | Level 10

Hello Exprts,

 

Please, how to deal with the proc sql error message : out of memory.

for the following code applied on a big tables.

The only method allowed is sas sql ( there is no "merge" or "set" allowed ..)

 

proc sql;

selec m.t1, n.v1, m.t2, n.v2

from toto1 m left join  toto2 n

on m.id=n.id

where  m.t3='2' and m.t4='4';

quit;

 

 

 

 

3 REPLIES 3
Reeza
Super User
You probably can't then, if you're not allowed alternatives.
Talk to your IT to increase resources.
SASKiwi
PROC Star

What's your SAS MEMSIZE setting? You can check it by running this:

proc options option = memsize;
run;

Large SQL queries often require a lot of memory.

 

Also you are missing a CREATE TABLE on your SELECT. That might be the causing the memory problem. Change your program like this:

proc sql;
create table want as
selec m.t1, n.v1, m.t2, n.v2
from toto1 m left join  toto2 n
on m.id=n.id
where  m.t3='2' and m.t4='4';
quit;

 

Kurt_Bremser
Super User

Without a CREATE TABLE, your SELECT pushes the result to the output window, and that will easily overwhelm your UI.

 

The "requirement" to not use the most powerful tool available in SAS is as stupid as it gets. I advise to seek employment somewhere else, working for idiots won't get you far.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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
  • 3 replies
  • 804 views
  • 2 likes
  • 4 in conversation