One COPY REPLACING type record will be emitted each time a REPLACING action takes place. That is, whenever operand-1 of the REPLACING phrase is matched with text in the copybook, a COPY REPLACING TEXT record will be written.
The following table shows the contents of the COPY REPLACING record.
| Field | Size | Description |
|---|---|---|
| Starting line number of replaced string | FL4 | The listing line number of the start of the text that resulted from REPLACING |
| Starting column number of replaced string | FL4 | The listing column number of the start of the text that resulted from REPLACING |
| Ending line number of replaced string | FL4 | The listing line number of the end of the text that resulted from REPLACING |
| Ending column number of replaced string | FL4 | The listing column number of the end of the text that resulted from REPLACING |
| Starting line number of original string | FL4 | The source file line number of the start of the text that was changed by REPLACING |
| Starting column number of original string | FL4 | The source file column number of the start of the text that was changed by REPLACING |
| Ending line number of original string | FL4 | The source file line number of the end of the text that was changed by REPLACING |
| Ending column number of original string | FL4 | The source file column number of the end of the text that was changed by REPLACING |