I have a SAS dataset that looks like this:
var _12 _41 _17
12 . . .
41 . . .
17 . . .
So for each var
there is a column named _var
.
I want to use an array or macro to populate all the missing values with the product of the row and column:
_12 _41 _17
12 144 492 204
41 492 1681 697
17 204 697 289
Any thoughts on how to approach this? I want it to be completely general, so I don't need to know the names of the columns, and make no assumptions about their order or values, other than that they are all numbers.