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 your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.
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.