data m1;
input x z;
datalines;
1 2
3 4
5 6
7 8
9 0
;
run;
data m2;
input y n m;
datalines;
8 7 6
7 6 5
4 5 6
;
run;
data m;
set m1;
do until(last);
set m2 end=last;
if m=6 then output;
end;
run;
如果把程序改一下:
data m1;
input x z;
datalines;
1 2
3 4
5 6
7 8
9 0
;
run;
data m2;
input y n m;
datalines;
8 7 6
7 6 5
4 5 6
;
run;
data m;
set m1;
do until(last);
set m2 end=last;
if m=6 ;
end;
run;