How do you define a table/array in COBOL using INDEX?

A. 01 ARRAYS.
05 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX
  B. 01 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX
  C. 01 ARRAYS.
05 ARRAY1 PIC X(9) OCCURS INDEX BY 10 TIMES
  D. 01 ARRAYS.
88 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX
  E. None of the Above

Answer: B

0 comments: