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.
Add your answer
Loading...

Leave a comment

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