You are tasked with sorting a large dataset of customer records based on their account balances in ascending order. Which COBOL operation would be most suitable for this task?
- MOVE statement
- READ statement
- SEARCH verb
- SORT verb
The SORT verb in COBOL is specifically designed for sorting data. It allows you to arrange records in ascending or descending order based on specified key fields, making it the most suitable choice for sorting customer records based on account balances.
Loading...
Related Quiz
- In a COBOL program for managing employee records, you need to represent each employee's details, including name, ID, and salary. Which type of COBOL data item would be most appropriate for this purpose?
- What is the role of the "THRU" keyword in the "EVALUATE" statement?
- When declaring a table in COBOL, which clause specifies the number of occurrences?
- How do you handle record updates and deletions in an indexed file system like VSAM using COBOL?
- When might you choose to use a PERFORM UNTIL loop instead of a PERFORM VARYING loop?