What are variable-length records in COBOL primarily used for?

  • Efficiently storing records of fixed length
  • Facilitating random access to records
  • Handling varying-length data, like free-form text
  • Simplifying program logic
Variable-length records in COBOL are primarily used for handling data with varying lengths, such as free-form text or variable-length fields. This flexibility allows for efficient storage of data with dynamic lengths.
Add your answer
Loading...

Leave a comment

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