When the OCCURS clause and the INDICATOR clause are both specified at an elementary level, a table of Boolean data items is defined with each element in the table corresponding to an external indicator. The first element in the table corresponds to the indicator number specified in the INDICATOR clause; the second element corresponds to the indicator that sequentially follows the indicator specified by the INDICATOR clause.
For example, if the following is coded:
07 SWITCHES PIC 1
OCCURS 10 TIMES
INDICATOR 16.
then SWITCHES (1) corresponds to indicator 16, SWITCHES (2) corresponds to indicator 17,..., and SWITCHES (10) corresponds to indicator 25.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.