Chapter 3: Arrays

Within Base SAS, arrays are conceptualized as temporary labels that reference a group of variables—they are not data structures. Arrays can reference linear or multidimensional elements, and they are contrasted with scalar variables that contain a single value. Developers familiar with other programming languages are likely accustomed to arrays that function as actual data types or data structures; however, SAS documentation makes clear the distinction of SAS arrays:

Arrays in the SAS language are different from arrays in many other languages. A SAS array is simply a convenient way of temporarily identifying a group of variables. It is not a data structure, and array-name is not a variable. (SAS Institute Inc. 2021)

Despite ...

Get PROC FCMP User-Defined Functions now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.