I am looking to take a column off an existing dataset (Weight in the example below), do logic on it in IML and then add a new column to the existing data set (or create a new dataset with all the columns from the original and the new column). Thank you.
proc iml;
ds = "Sashelp.Class";
use (ds);
read all var _NUM_ into X;
close (ds);
...do some vector logic using Weight...
...add the new column vector back onto the original dataset...
run;