proc IML;
a=1;
b=2;
start sum_square(c,a,b);
a = a+1;
c = (a+b)**2;
finish;
run sum_square(c,a,b);
print a c;
I found an issue with the SAS IML function that the input value of the function would be changed if the input value is overrided inside the function. In the example code, I actually do not want to modify the value of "a" after the function is run, however, "a" is changed to 2 when I print at the bottom of the code. Is there anyway that I can avoid to override the input? In matlab, the input value would not change even if it is modified in a function. Thanks!