Why might you choose variable-length records over fixed-length records in COBOL file processing?

  • To enforce strict record size consistency
  • To improve processing speed in sequential file access
  • To save storage space by avoiding padding unused portions
  • To simplify program logic and enhance readability
Choosing variable-length records in COBOL can save storage space by avoiding the need to pad unused portions. It is especially beneficial when dealing with data of varying lengths, reducing wasted storage.
Add your answer
Loading...

Leave a comment

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