you need an output statement. try the code below: data all_year; input OBTN1 OBTN2 OBTN3 OBTN4 OBTN5; cards; 1 2 3 4 5 6 7 8 9 10 ; data all_year2; set all_year; array obt [5] OBTN1 OBTN2 OBTN3 OBTN4 OBTN5; do order=1 to 5; obtain=obt [order]; output; end; run; proc print;run; Linlin
... View more