My question is if I am not initializing/setting any value of the index variable then, what value will the index hold. To rephrase my question, let's assume that the table definition is -
01 WS-PERSON-INFO SYNC.
03 WS-NAME-INFO OCCURS 10 TIMES
INDEXED BY WS-NM-IDX.
05 WS-NAME PIC X(10).
03 WS-NAME-INFO OCCURS 10 TIMES
INDEXED BY WS-NM-IDX.
05 WS-NAME PIC X(10).
& I am executing the statement -
MOVE 'A' TO WS-NAME(WS-NM-IDX)
then, 'A' would be moved to which position/index location in the 1-D table if I have not pre-set the index to any value.