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!
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.