It is "easy" to use Arrays in the Data step when solving this problem.