Based on the work in my SAS Press Book "Data Preparation for Analytics" I have created macros to transpose more than one variable in one go.
Goto
http://support.sas.com/kb/32/121.html for transposing from WIDE to LONG and
http://support.sas.com/kb/32/122.html for transposing from LONG to WIDE.
More Details on "Data Preparation for Analytics" can be found under
http://www.sascommunity.org/wiki/Data_Preparation_for_Analytics, where you can download all macros, programs and datasets for the book.
Gerhard