Please enable JavaScript to view this site.

A-Shell Reference

Written June 2025

{qualifier} DIMX arrayname, definition

DIMX statements are used to create arrays and collections. They are similar to MAP statements in that they declare variables and thus need to be seen by the compiler before the corresponding variables can be referenced. But unlike MAPstatements—except those containing initial values—DIMX statements also need to be initialized (or allocated) via run time execution before they can be used. Unlike variables created by MAP statements, those created by DIMX can be re-dimensioned and de-allocated (by REDIMX statements). The following list provides links to the specific variations of DIMX statements according to variable type, along with some related statements and functions.

REDIMX (redimension or deallocate)
.EXTENT() (test size and whether allocated)