Hi, I'm trying to update a sas dataset using proc iml but with no success. his is the code I wrote: data a1; a='c1'; a1=1; a2=2; a3=5; wr=3;output; a='c2';a1=3; a2=1; a3=4; wr=5;output; run; proc iml; edit a1 VAR {A1 A2 A3 WR} ; read all var {A1 A2 A3} into nn; read all var { wr} into wr; print nn; do i=1 to 2; do j=1 to 3; if i^=j then nn[i,j]=nn[i,j]*1/(1-wr/2); end; replace point i; end; replace ; print wr nn; close a1 ; quit; But at the end even if the nn matrix is correct a1 dataset is not updated. I know that my question is rather easy, but I'm new with this procedure. Thanks in advance Federica
... View more