nielsyding
Instructor
Hi.
I have about 45000+ small data sets that I need to combine into one data set. I have tried using the macro code below. The problem is that there's about 50 data sets that are missing and when for instance data set "parm400" is missing the code fails and the "Samletparm" data set contains no observations.
Is there a way to tell SAS to continue joining the data sets even if there's some missing in between?
%macro names(prefix,maxnum);
%do i=1 %to &maxnum;
&prefix&i
%end;
;
%mend names;
data eq.SamletParm;
set %names(eq.parm,46080);
run;
Thanks in advance.
I have about 45000+ small data sets that I need to combine into one data set. I have tried using the macro code below. The problem is that there's about 50 data sets that are missing and when for instance data set "parm400" is missing the code fails and the "Samletparm" data set contains no observations.
Is there a way to tell SAS to continue joining the data sets even if there's some missing in between?
%macro names(prefix,maxnum);
%do i=1 %to &maxnum;
&prefix&i
%end;
;
%mend names;
data eq.SamletParm;
set %names(eq.parm,46080);
run;
Thanks in advance.