replace considerations for file I/O

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.

Syntax

Syntax diagram for replace with file I/O
recordVariable
This record variable contains the new information to be placed in the data source.

Feedback