In reply to Jason.

Yes. Several ways, in fact. When going from long to wide, you need to consider whether there are an equal number of observations for each group. You can find a discussion of three methods and their advantages/disadvantages in Zdeb (2012). I tend to use the DATA step array method (pp 5-7) more then the other methods.