There is a difference between do i=1 to 4 while... and do i=1,2,3,4 while...
in the second one the expression is evaluated only for the last item (i=4).
in the first one the expression is evaluated at the beginning of each iteration.
Consider the differences between these examples:
HTH,
Marius
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.