MATCH - MERGE LOGIC Match Merge logic is extensively used in COBOL programs to compare the data in two sequential files effectively. Only pre-requisite to for using this logic is, all input files to be in Sorted Order Problem : I have 2 Sequential files File 1 and File 2 . If Record exists in both the files then write data into FILE A If Record exists only in File1 and not in File2 then write data into FILE B If Record exists only in File2 and not in File1 then write data into FILE C Solution: The effective way of solvi ng above problem is, by using Match Merge Logic. Only pre-requisite to for using this logic is, all input files to be in Sorted Order. First step sort I/P file Explanation of Logic : Below listed are I/P and Output files data for say RollNo File 1 File 2 FILE A FILE B FILE C 10 ...
Cobol Jcl DB2 VSAM IMSDB/DC CICS MQ series Rexx CSP Workbench Spufi File Aid Expidetor Changeman Infoman Interview Questions / Faqs Job posting for Mainframes Freshers / Experienced