In a multi-user environment, two COBOL programs need to access the same file for reading and writing simultaneously. Which file access mode should you select to ensure data consistency?
- DYNAMIC
- I-O
- INPUT
- OUTPUT
In a multi-user environment, the appropriate file access mode is I-O (Input-Output). This mode supports concurrent reading and writing operations, ensuring data consistency when multiple programs access the same file simultaneously.
Loading...
Related Quiz
- How can you terminate a PERFORM loop in COBOL using the EVALUATE statement?
- You are developing a COBOL program to process a file with variable-length records that represent customer orders. Each record has a different length based on the number of items ordered. What clause should you use to efficiently read and process these records?
- How does COBOL handle multi-dimensional arrays?
- What role does the "SORT" operation play in optimizing file handling performance in COBOL?
- Your COBOL program needs to maintain a counter that keeps track of the number of times a specific operation is performed. Which type of variable is suitable for this task?