I have 2 input files to read. The first one CUSTOMER-FILE has 6 records that I can load directly into my 2 dimensional 6 x 4 table. The problem that I am having is loading the data from the USER-FILE into the same table as it has 15 records and some of those records will have the same ID number 4 times. So what I am required to do is check to see if the ID matches the ID's already in the table and increment the relevant position in the table.
At present I have the following CUSTOMER (CUST-SUB) from the CUSTOMER-FILE and USER-ID from the USER-FILE.
I have tried a PERFORM UNTIL USER-ID = CUSTOMER (CUST-SUB) OR CUST-SUB > 6
I then increment the subscript DAYS-SUB and move the records into the table - but it is not working.
At present I have the following CUSTOMER (CUST-SUB) from the CUSTOMER-FILE and USER-ID from the USER-FILE.
I have tried a PERFORM UNTIL USER-ID = CUSTOMER (CUST-SUB) OR CUST-SUB > 6
I then increment the subscript DAYS-SUB and move the records into the table - but it is not working.