In a COBOL program, you need to merge two input files containing sales data for different regions into a single output file, sorted by date. Which COBOL technique should you employ?

  • ADD statement
  • MERGE statement
  • PERFORM...THRU statement
  • SEARCH ALL statement
The MERGE statement in COBOL is used for merging two or more sorted input files into a single sorted output file. In this scenario, it would be the appropriate choice to merge sales data from different regions sorted by date.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *