In reply to Sébastien.

proc iml;
ID = {'A', 'B', 'C'};
x = {1 2 3, 4 5 6, 7 8 9};
varNames = {'x' 'y' 'z'};
create Want from x[rowname=ID colname=varNames];
append from x[rowname=ID];
close;