Enterprise COBOL supports arrays up to 7 dimensions. Just define the OCCURS variables, set your subscripts (or indexes) and use the array elements just like any other array in COBOL.
Robert Sample wrote:Enterprise COBOL supports arrays up to 7 dimensions. Just define the OCCURS variables, set your subscripts (or indexes) and use the array elements just like any other array in COBOL.
ya i know we hv to use OCCURS clause but for 3 dimensional it must be written 3 times as shown
Your definition is exactly right. You would need to define subscript variables for each dimension, set them appropriately, then use them to access NUM. For example,