The DO OVER statement iterates over an array, dictionary, or table. The DO UNTIL statement executes statements in a DO loop repetitively until a condition is true, checking the condition after each iteration of the DO loop.
Do loops over array in SAS?
SAS ARRAYS
An array name is assigned to the set of variables and then the array name is referenced in later DATA step programming, usually a DO loop, to do an operation on the entire set of variables in the array. Arrays can be used to do all sorts of things. To list just a few, an array can be used to 1.
DO loop in SAS examples?
SAS Do Loop Example:-
data A; do i = 1 to 4; y = i**2; /* values are 2, 5, 9, 16, 25 */ output; end; run; data A; do i = 1 to 4; y = i**2; /* values are 2, 5, 9, 16, 25 */ output; end; run; The END statement marks the end of the SAS loop.