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.
Loading...
Related Quiz
- In file handling, what does the term "buffering" refer to?
- In COBOL, what does the MERGE statement allow you to do with files?
- What types of locks can be used in COBOL file handling to prevent concurrent access conflicts?
- You are developing a COBOL program for an online banking system. What type of exception handling approach would you use to ensure that transactions are rolled back in case of errors during fund transfers?
- What is the purpose of the REDEFINES clause in COBOL?