In COBOL, what is the role of the SORT statement when handling duplicate records?

  • It arranges records in ascending order based on the specified key
  • It has no impact on duplicate records
  • It removes duplicate records from the file
  • It separates duplicate records into a separate file
The SORT statement in COBOL, when used with the DUPLICATES phrase, segregates duplicate records into a separate output file, allowing for distinct processing of such records.
Add your answer
Loading...

Leave a comment

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