What is the primary purpose of using the SORT operation in COBOL?

  • To arrange data in a specified order based on one or more keys
  • To create a new file by merging multiple sorted files
  • To perform arithmetic calculations on numeric data
  • To remove duplicate records from a file
The SORT operation in COBOL is used to arrange data in a specified order based on one or more keys. It helps in organizing data for efficient retrieval and reporting.
Add your answer
Loading...

Leave a comment

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