The COBOL MERGE statement combines two or more identically sequenced files on a set of specified keys. As part of…