Here We Go Loopy Do
One of the most versatile mechanisms in the SAS data step for iterating is DO the loop in its many forms. This paper considers several uses and forms of DO loops, from the basic DO - END iteration, through lesser known uses of iteration with dates, letters and expressions. Further techniques are covered by example, including looping through elements of arrays, avoiding infinite loops and finally conditional termination of WHILE and UNTIL loops.