PROC TRANSPOSE creates RADIO_TRANSPOSED. This data set
contains the variable Listener from the original data set. It also contains
two transposed variables: Timespan and Choice. Timespan contains the names
of the variables (Time1-Time7) from the input data set that are transposed
to form observations in the output data set. Choice contains the values of
these variables. (See
A Closer Look for a complete explanation of the
PROC TRANSPOSE step.)
proc transpose data=radio
out=radio_transposed(rename=(col1=Choice))
name=Timespan;
by listener;
var time1-time7;