Can someone help me understand how the code is processing the output in the attached table?
data number;
array member[*] mem1-mem12;
mem1=10;
do id=1 to dim(member)-3;
member[id+1]=id/member[id];
output;
end;
run;
Thanks for the feedback! I didn't understand where the denominator was coming from, but I think I do now. The denominator is the result of the previous iteration's calculation, right?
Thanks!
Thanks for you time in responding. It was my first question posted...
My question was in the iterative do loop, I didn't know where the denominator for the member[id+1]=id/member[id] was coming from. I was able to figure it out that it was the value calculated in the previous iteration. I think I'm good to go.
Thanks!
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.