You can only keep needed columns. Try below:
data b(keep=id i1 i2 i3 i4 x1 x2 x3 x4);
array a1 m6-m13; *8 elements;
array a2 n15-n20; * 6 elements;
array a3 o13-o18; * 6 elements;
array a4 p19-p22; *4 elements;
merge a1 a2 a3 a4; by id;
do i1 = 1 to 8 by 1;
do i2 = 1 to 6 by 1;
do i3 = 1 to 6 by 1;
do i4 = 1 to 4 by 1;
x1 = a1[i1];
x2 = a2[i2];
x3 = a3[i3];
x4 = a4[i4];
output;
end;
end;
end;
end;
run;


雷达卡




京公网安备 11010802022788号







