Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

DIMENSION

DIMENSION returns a FIXED BINARY value specifying the current extent of dimension y of x.

Read syntax diagramSkip visual syntax diagram>>-DIMENSION(x-+----+-)----------------------------------------><
               '-,y-'
 

Abbreviation: DIM

x
Array reference. x must not have less than y dimensions.
y
Expression specifying a particular dimension of x. If necessary, y is converted to a FIXED BINARY(31,0). y must be greater than or equal to 1. If y is not supplied, it defaults to 1.

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, while under the CMPAT(V1) compiler option, it returns a FIXED BIN(15) value.

Using LBOUND and HBOUND instead of DIMENSION is recommended.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)