
87
6
Array Processing
6.1 Introduction to Array Processing
If you are familiar with other programming languages, you have probably
worked with arrays. Arrays allow you to modify data more efciently
because you can use them to perform the same tasks for a group of related
variables inside a looping structure.
Working with arrays, however, is more complicated in SAS
®
, partly
because the syntax has been enriched to allow for nuanced data processing.
Even when the syntax is mastered, one still needs to understand how the
array interacts with what is going on in the PDV. Knowing when it is best to
replace existing code with an array presents an ad