SAS programming lecture 6:
Examples of Do Loops:
- Use of BY to control the counter
- Use of BY - (count)
- Use of a list of integers
- Do Until
- Do While
- Simple nested Do loops
- Nested Do loops with dependent indices
- Nested Do loops with a list
- Do loop with a character-valued list
- Do loop with a character-valued list and some new
character functions
The other example program illustrates using Do loops for
reading data, pointer control, and some other features.