Amadeus cookies policy - you'll see this message only once.

Amadeus use cookies on this website. They help us to know a little bit about you and how you use our website, which improves the browsing experience and marketing - both for you and for others. They are stored locally on your computer or mobile device. To accept cookies, continue browsing as normal. Or, go to the privacy policy for more information.

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.

Here We Go Loopy Do.pdf