I'm not 100% what you are looking for, but if you want to turn columns into rows, you can use proc transpose.
For example, it can turn table:
Year Month Count
2007 Jan 2
2007 Feb 3
2008 Jan 4
2008 Feb 5
into:
Year Jan Feb
2007 2 3
2008 4 5
proc transpose data=<tablein> out=<tableout>;
by <field1> (Year in this ex);
id <field2> (Month in thie ex);
var <field3> (Count in this ex);
run;