Thank you @Astounding and @Reeza ! You might be right, Astounding, transpose did complicate it but I need to replicate an existing report and so I don't have much say in how it's displayed. Also, that last column was requested after I thought I had everything done, the way I wanted it. I still think the biggest problem is the names of columns that are dynamically assigned so cannot be hardcoded. I'll try to do it the way you suggested, Reeza. It makes perfect sense but, like I said, I'm new to SAS so hopefully I can figure it out. I completed the first 2 steps already so now I just need to figure out the other 2 - the array and logic to create a new, computed, column. Thanks again!
... View more