Interviewer gave me this definition of tables in COBOL -
Code: Select all
01 WS-TABLE-DEF.
05 WS-MAIN-TABLE OCCURS 10 TIMES.
10 WS-FIRST-CHILD OCCURS 30 TIMES
15 WS-CHILD-CHILD PIC 9(5) OCCURS 10 TIMES
10 WS-SECOND-MAIN-TABLE PIC 9(4) OCCURS 20 TIMES
10 WS-THIRD-MAIN-TABLE PIC 9(3) OCCURS 20 TIMES