Specifying an array name with EVAL will display the full array. To display one element of an array, specify the index of the element you wish to display in parentheses.
To display a range of elements use the following range notation:
EVAL field-name (n...m)
The variable field-name is the name of the array, the variable n is a number representing the start of the range, and the variable m is a number representing the end of the range.
Figure 124 shows the use of EVAL with the array in DBGEX.
> EVAL Arry 3S 2 DIM(2) INZ(1.23)
ARRY(1) = 1.23 ** Display full array **
ARRY(2) = 1.23
> EVAL Arry(2) ** Display second element **
ARRY(2) = 1.23
> EVAL Arry(1..2) ** Display range of elements **
ARRY(1) = 1.23
ARRY(2) = 1.23