Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: Explain the concept of the REWRITE statement in COBOL.
Answer: The REWRITE statement in COBOL is used to modify the contents of a record in a file. It is typically used in conjunction with the READ statement to update existing records.

Example:

READ FILE-1 INTO DATA-RECORD.
REWRITE DATA-RECORD.
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook