How to Use ARRAYs and DO Loops: Do I DO OVER or Do I DO I?

Source: SAS Institute

Favorite

Free registration required

Just the mention of ARRAYs and DO loops is enough to make a new SAS programmer want to run away, cover their ears, and shut their eyes. However, if one has ever copied SAS code that performs the same operation to create multiple new variables, using ARRAYS and DO loops can make one's job easier. ARRAYs and DO loops are powerful data manipulation tools that help make code more efficient. In this paper one will learn when ARRAYs and DO loops can and should be used, how to set up an ARRAY with and without specifying the number of array elements, and determine what type of DO loop is most appropriate to use within the constraints of the task one wants to perform.
Format:PDF Size:107.40
Date:Feb 2009