When is it preferable to use fixed-length records instead of variable-length records in COBOL file processing?

  • When dealing with large files
  • When optimizing for storage space is crucial
  • When the records have varying structures
  • When there is a need for dynamic record lengths
Fixed-length records are preferable in COBOL when optimizing for storage space is crucial. This is because fixed-length records allocate a consistent amount of storage for each record, which can be more space-efficient in certain scenarios.
Add your answer
Loading...

Leave a comment

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