REWRITE STATEMENT:
The REWRITE statement has the format for a relative file as shown below,
REWRITE record-name [ FORM identifier ]
[ ; INVALID KEY imperative -statement ]
The REWRITE statement is used to substitute an existing record by the contents of the record specified in the record name. The file should be opened in the I-O mode.