Still trying to learn SAS and came across an interesting question/sample of code This is the sample question/code data WORK.LOOP; X = 0; do Index = 1 to 5 by 3; X = Index; end; run; So I can see that the final output is X=4 Index=7 I understand that the Index starts at 1, then increments by 3 and so forth. So technically the index output should be Index=1 Index=4 This is where things get muddy for me. If Index = 4, and the next value is greater then 5 I would have thought the final output would be X=4 Index=4 Why would this not be the final output? Hope this makes sense, been quite a long day reading through stuff
... View more