Look at the USE and READ statements in the IML documentation to read IML matrices/vectors from a SAS data set. For an (r x c) table, the basic syntax is:
use libref.mytable;
read all var into InitialTable;
close libref.mytable;
use libref.rowmargin;
read all var into rowMargin; /* or read all var {nameOfVar} */
close libref.rowmargin;
use libref.colmargin;
read all var into colMargin;
close libref.colMargin;
... View more