The ARRAY statement
in PROC FCMP is similar to the ARRAY statement that is used in the
DATA step. The ARRAY statement associates a name with a list of variables
and constants. You use the array name with subscripts to refer to
items in the array.
The ARRAY statement
that is used in PROC FCMP does not support all the features of the
ARRAY statement in the DATA step. The following is a list of differences
that apply only to PROC FCMP:
-
All array references must have
explicit subscript expressions.
-
PROC FCMP uses parentheses after
a name to represent a function call. When you reference an array,
use square brackets [ ] or curly braces { }.
-
The ARRAY statement in PROC FCMP
does not support lower-bound specifications.
-
You can use a maximum of six dimensions
for an array.
You can use both variables
and constants as array elements in the ARRAY statement that is used
in PROC FCMP. You cannot assign elements to a constant array. Although
dimension specification and the list of elements are optional, you
must provide one of these values. If you do not specify a list of
elements for the array, or if you list fewer elements than the size
of the array, PROC FCMP creates array variables by adding a numeric
suffix to the elements of the array to complete the element list.