The _____ data type in COBOL is used for handling variable-length records in files.

  • INDEX
  • OCCURS
  • REDEFINES
  • VARYING
The VARYING clause in COBOL is used for handling variable-length records in files. It allows a field to have a variable length based on the actual data stored. This is particularly useful when dealing with records of varying sizes in file processing.
Add your answer
Loading...

Leave a comment

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