PROC TRANSPOSE transposes only the numeric variables, Test1, Test2, and Final because no VAR statement appears. OUT= puts the result of the transposition in the IDLABEL data set. NAME= specifies Test as the name for the variable that contains the names of the variables in the input data set that the procedure transposes. The procedure names the transposed variables by using the value from PREFIX=, sn, and the value of the ID variable StudentID.
proc transpose data=score out=idlabel name=Test
     prefix=sn;
   id studentid;