Yes, you could use arrays, but any time you have a wide data set, with a specific year in the variable names (or any calendar information in the variable names), you have chosen a data arrangement that is more difficult to work with, and probably requires a lot more programming than if you kept the data in a long format, with year as a variable containing values 1 through 10.
You see, SAS already provides several built-in methods of doing what you are trying to do, they have done the work so you don't have to, if you use a long data set, then you have much less programming. PROC REPORT get this output table easily, without you having to do all the coding of individual years.
See Maxim 19. Embrace long data sets. Make your coding simpler.
--
Paige Miller