Replacing segments using field-level sensitivity

The SENFLD statement must allow replace operations (REPL=Y) if the application program is going to replace data in a segment.

In the example shown in How to specify use of field-level sensitivity in the DBD and PSB, the SENFLD statement for EMPNAME specifies REPL=N. A “DA” status code would be returned if the application program tried to replace the EMPNAME field. The following figure shows an example of a REPL call based on the DBD and PSB in How to specify use of field-level sensitivity in the DBD and PSB.

Figure 1. Example of a REPL call
Because RELP=N, the physical segment after update is the same as it was before the update.