How do you handle record updates and deletions in an indexed file system like VSAM using COBOL?
- Use the DELETE verb for record deletion and the WRITE verb for record updates.
- Use the READ verb with UPDATE option for record updates and DELETE for record deletions.
- Use the MODIFY statement for both record updates and deletions.
- Use the REWRITE verb for record updates and DELETE verb for record deletions.
In VSAM and other indexed file systems, the READ verb with UPDATE option is used for record updates, and DELETE verb is used for record deletions. The MODIFY statement is not used for direct updates or deletions in this context.
Loading...
Related Quiz
- When using the REDEFINES clause in COBOL, what happens to the memory occupied by the redefined data items?
- The _____ statement is used to transfer control to another paragraph in the Procedure Division.
- How does COBOL handle multi-user access to VSAM and ISAM files, and what are the potential issues?
- How is encapsulation achieved in Object-Oriented COBOL?
- The Data Division in COBOL is responsible for describing the structure and ________ of data items used in the program.