That specification of the Shape function worked. When I print the resulting matrix within IML, it is square. However, when I create output containing that matrix, the output resolves to a vector:
Vec2 = the resulting square matrix
create Outputx var {Vec2};
append;
close Outputx;
run;*end Proc IML;
Outputx contains a single column with nxn rows.
Why does Outputx not contain the square matrix Vec2?
Thank you.