In the context of file I/O that does not involve databases, the EGL replace statement writes changed indexed or relative record information back to a file. The statement is not available with the SerialRecord or CSVRecord stereotype.
If you want to replace an indexed or relative record, you must issue a get statement for the record with the forUpdate option, then use the replace statement with no intervening I/O operation against the same file. For more information, see get considerations for file I/O.