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

DIMENSION attribute

The dimension attribute specifies the number of dimensions of an array and upper and lower bounds of each.

Bounds that are nonrestricted expressions are evaluated and converted to FIXED BINARY (with a precision corresponding to the CMPAT compiler option) when storage is allocated for the array.

The extent is the number of integers between, and including, the lower and upper bounds.

Read syntax diagramSkip visual syntax diagram                     .-,---------.
                     V           |
>>-+-----------+--(----| bound |-+--)--| bound: |--------------->
   '-DIMENSION-'
 
>--+-------------------+--+-| upper-bound |-+------------------><
   +-| lower-bound |-:-+  '-*---------------'
   '-*:----------------'
 
lower-bound:
 
   .-1-------------------------------.
|--+---------------------------------+--------------------------|
   '-expression--+-----------------+-'
                 '-REFER(variable)-'
 
upper-bound:
 
|--expression--+-----------------+------------------------------|
               '-REFER(variable)-'
 

Abbreviation: DIM

If the DIMENSION keyword is omitted, the dimension must immediately follow the name (or the parenthesized list of names) in the declaration.

The number of bounds specifications indicates the number of dimensions in the array, unless the declared variable is in an array of structures or unions. In this case it inherits dimensions from the containing structure or union.

The bounds specification indicates the bounds as follows:


Terms of use | Feedback

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