Table 1- All the rc-id with date and amount
Table 2- Only the rc-id equal to 250 and its corresponding date,amount
Table 3- Only the rc-id equal to 251 and its correspodning date,amount
I need to read table 1 and write it when the rc-id not equal to 250 or 251
when it read 250 then i need to do compare with the table 3
If the date and amount in 250 matches the 251 record in table 3 then need to skip it else i need to write it
similarly,When it hits the 251 record then i need to compare it vice versa with the table 2 having 250 records
If the date and amount in 251 matches the 250 record in table 2 then need to skip it else i need to write it
How do we do this in cobol.
Also when decaring the table i tried like
05 WS-x1-RECORD OCCURS 1 TO 2000 TIMES
DEPENDING ON WS-x1-CTR.
10 WS-rcd-ID PIC 9(3).
10 WS-x1-CD PIC X.
is it necessary to use indexed by or just this will do.