Using Multidimensional Arrays

Review of the Multidimensional Array Statement

When a lookup operation depends on more than one ordinal numeric key, you can use a multidimensional array. You use an ARRAY statement to create an array. The ARRAY statement defines a set of elements that you process as a group.
General form, multidimensional ARRAY statement:
ARRAY array-name {rows,cols,...} <$> <length>
<array-elements> <(initial values)>;
Here is an explanation of the syntax:
array-name
names the array.
rows
specifies the number of array elements in the row dimension.
cols
specifies the number of array elements in the column dimension.
array-elements
names the variables that make up the array.
initial values
specifies ...

Get SAS Certification Prep Guide, 4th Edition 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.