Is the code to combine specified (by set Filena) data sets vertically? I guess something like that
[code:12k415r6]data a b c d;
do x = 1 to 4;
y = x;
select (x);
when (1) output a;
when (2) output b;
when (3) output c;
when (4) output d;
otherwise;
end;
end;
run;
data Filena;
input Prefix $@@; datalines;
a b c d
;
data total;
set _null_;
run;
%macro Merge_data(Prefix =);
data Total;
*--merge Total_data &Prefix;
*--by date;
set Total &Prefix;
run;
%mend;
data Tol;
set Filena;
call execute('%Merge_data(Prefix ='||Prefix||')');
run;[/code:12k415r6]
<!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Thanks! I just want to combine the datasets in Filena!!! Your method can do it !!!