I don't have access to SAS/IML.
The array would be used for looking up values
It would be one array row per input observation. For example, code{1,7} = "A1" code{2,7}="B13"
For 1 ≤ i ≤ 1000 & 1 ≤ j ≤ 7. {i, j=1} is the key value and {i, j>1} data value
Below is the closest I had gotten to something compact. But, I'll go with what @Tom has.
data have;
array code{7} $ code1-code7;
array m{2,7} $ _temporary_;
call missing(of m{*});
input code1-code7 ;
i+1;
j+1;
do j = 1 to 7;
m{i,j}=code{j};
end;
datalines;
A1 A03 A005 A0007 A00009 A0000011 A13
B1 B03 B005 B0007 B00009 B0000011 B13
;
run;
Thank you, All
... View more