Adventures in Arrays

From sasCommunity
Jump to: navigation, search
Jane Stroupe
SAS Institute, Inc.

Abstract

Do you need to

  • perform repetitive calculations on a group of variables?
  • create many variables with the same attributes?
  • restructure your data?
  • perform a table lookup with one or more factors?

If your answer is "Yes" to any of these questions, you should consider using an array in your DATA step. This beginning tutorial features examples that explore the many uses of an array and unravel the mystery of what an array does. Once you understand how an array actually works, you can use this powerful tool to simplify many complicated tasks and to reduce your programming headaches.

Online materials

  • You can download the full PDF of this paper here.

See also