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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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