sample code from IML manual. Hope it helps<br/><br/>proc iml; /* begin IML session */<br/> start approx(x); /* begin module */<br/> y = 1; /* initialize y */<br/> do until(w < 1e-3); /* begin do loop */<br/> z = y; /* set z=y */<br/> y = .5#(z + x/z); /* estimate square root */<br/> w = abs(y - z); /* compute change in estimate */<br/> end; /* end do loop */<br/> return(y); /* return approximation */<br/> finish approx; /* end module */<br/> t = approx({3,5,7,9}); /* call function APPROX */<br/> print t; /* print matrix */<br/>quit;<br/>