SAS programming lecture 6:

Examples of Do Loops:

The other example program illustrates using Do loops for reading data, pointer control, and some other features.