In reply to Rick Wicklin.

Thanks for the suggestion. Is ODS required to get the right form of the table into a SAS data set? Because when I use the out= option on the table statement of proc freq, the resulting SAS data set does not look like the table. Instead of having a separate column for each year as the table does, the resulting data set has a single year variable as the original data set did. Is transposing required to get the individual years back into separate columns?