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!
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.