CEO Art297 Thanks for your inputs. I have used the same code from CEO Art297 and slightly modified to get the expected output. Shiva, Can you please check this code. ata have; input id name$ marks; total+marks; cards; 1 a 10 2 b 20 3 c 30 4 d 40 ; data want; do until (eof1); set have end=eof1; v+marks; end; do until (last.marks); set have ; output; end; run; proc print;
... View more