I am receiving an error subscript out of range Error 153 for the following table and query.
01 REPORT-TABLE
05 CUST OCCURS 6 TIMES DEPENDING ON CUST-SUB
10 CUSTOMER
10 DAYS OCCURS 4 TIMES INDEXED BY DAYS-SUB
15 T-1-DAY PIC 9(02).
15 T-2-DAY PIC 9(02).
15 T-3-7-DAY PIC 9(02).
15 T-OVER-DAY PIC 9(02).
PERFORM VARYING CUST-SUB FROM 1 BY 1 UNTIL CUST-SUB > 6
PERFORM VARYING DAYS-SUB FROM 1 BY 1 UNTIL DAYS-SUB > 4
The customer file has 6 records and the user file has 15 records. What am I doing wrong, I have played with the size of the table but just get different error messages.
01 REPORT-TABLE
05 CUST OCCURS 6 TIMES DEPENDING ON CUST-SUB
10 CUSTOMER
10 DAYS OCCURS 4 TIMES INDEXED BY DAYS-SUB
15 T-1-DAY PIC 9(02).
15 T-2-DAY PIC 9(02).
15 T-3-7-DAY PIC 9(02).
15 T-OVER-DAY PIC 9(02).
PERFORM VARYING CUST-SUB FROM 1 BY 1 UNTIL CUST-SUB > 6
PERFORM VARYING DAYS-SUB FROM 1 BY 1 UNTIL DAYS-SUB > 4
The customer file has 6 records and the user file has 15 records. What am I doing wrong, I have played with the size of the table but just get different error messages.