Here is for Array . data marks;
input subject $ A101-A107;
cards;
English 100 200 300 400 500 600 700
Maths 400 500 400 550 400 500 250
;
run;
data _null_;
set marks end=last;
array x{7,2} _temporary_;
array s{7} a:;
do i=1 to 7;
x{i,_n_}= s{i};
end;
if last then do;
do i=1 to 7;
do j=1 to 2;
put x{i,j}= @;
end;
put / ;
end;
end;
run;
Ksharp
... View more