DIMENSION returns a FIXED BINARY value that specifies the current extent of dimension y of x.
>>-DIMENSION(x-+----+-)---------------------------------------->< '-,y-'
Abbreviation: DIM
y can be omitted only if the array is one-dimensional.
If y exceeds the number of dimensions of x, the DIMENSION function returns an undefined value.
Under the CMPAT(V3) compiler option, DIMENSION returns a FIXED BIN(63) value. Under the CMPAT(V2) and CMPAT(LE) compiler options, DIMENSION returns a FIXED BIN(31) value.
Using LBOUND and HBOUND instead of DIMENSION is recommended.