BookmarkSubscribeRSS Feed
SASPhile
Quartz | Level 8
I'm trying a set statement on files. each of them have 30k or more observations.
when i run the following code i'm getting an error "out of resources:.
%macro mrge_plan;
data ctm_comb.flip_plan_files;
set
%do i= 1 %to 9;
flip08.flip_plan_%sysfunc(putn(&i,z2.))

%end;;

run;
%mend mrge_plan;
%mrge_plan;

how to handle this error?
2 REPLIES 2
data_null__
Jade | Level 19
Perhaps open=defer SET statement option will work for you if the variable in FILP_PLAN_nn are all the same. See doc for details.

> I'm trying a set statement on files. each of them
> have 30k or more observations.
> when i run the following code i'm getting an error
> "out of resources:.
> %macro mrge_plan;
> data ctm_comb.flip_plan_files;
> set
> %do i= 1 %to 9;
> flip08.flip_plan_%sysfunc(putn(&i,z2.))
>
> %end; open=defer;
>
> run;
> %mend mrge_plan;
> %mrge_plan;
>
> how to handle this error?
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Send more info - SAS version, OS platform, and also send SASLOG output (with all SOURCE code revealed) about the problem leading up to the error. Also, have you tried your code with fewer than 9 files -- at what point does the error start to occur? The SAS support website http://support.sas.com/ reveals that there are multiple possible contributing factors to this type of error message, disk space, memory, SAS CONFIG options, amount of system memory, and others.

Scott Barry
SBBWorks, Inc.

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!

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