Array expressions
Array expressions can include operators (both prefix and infix), element variables, and constants. The rules for combining operations and for data conversion of operands are the same as for element operations.
Array expressions are allowed as the following:
- The source in an assignment or in multiple assignments
- The argument to the ALL, ANY, POLY, PROD or SUM built-in functions
- An argument to a user procedure and function, as long as the associated parameter is not a string of unknown length
- An item in the data-lists of PUT LIST and PUT EDIT statements
Evaluation of an array expression yields an array result. All operations performed on arrays are performed element-by-element, in row-major order. Therefore, all arrays referred to in an array expression must have the same number of dimensions, and each dimension must be of identical bounds.