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.
Loading...
Related Quiz
- The LEVEL NUMBER in COBOL indicates the ________ of the data item.
- _____ is the file access mode used when you only need to read records from a file in COBOL.
- You are designing a COBOL program to manage a customer database. What file organization would you choose for the master file to allow efficient random access to customer records?
- In COBOL, what is the significance of the USAGE clause when defining variables?
- How does exclusive file locking differ from shared file locking in terms of access permissions?