Hi, I am working on a cobol program. I need some inputs on structuring my logic in order to achieve the required output.
Requirements -
Program Inputs -
1 Flat file (80 bytes), Contains - Page-No, Page-length, Page-offset
1 XML file, Contains - multiple elements, like ReportID, PostingDate, Indexfield, Indexvalue, Page-No
Output - Write out a report,
Condition -
I need to read the Page No from xml-file and compare the same in the flat file. If there is a match then write out a report by reading xml elements.
- few consideration: in the XML file there can be more than 1 row with same page no and I need to account all of them while writing the report.
For ex; From XML I have Page No=1 (I have 2 entries for Page NO=1 in the xml)
There is a matching entry in the flat file and I need to write the report.
Can you advise what is best way to implement the logic for my requirement?