When edit routines are taken

An edit routine is invoked to edit-encode a row whenever an SQL statement or LOAD utility job inserts or updates the row.

Begin program-specific programming interface information.An edit routine is invoked after any date routine, time routine, or field procedure. If there is also a validation routine, the edit routine is invoked after the validation routine. Any changes made to the row by the edit routine do not change entries made in an index.

The same edit routine is invoked to edit-decode a row whenever Db2 retrieves one. On retrieval, it is invoked before any date routine, time routine, or field procedure. If retrieved rows are sorted, the edit routine is invoked before the sort. An edit routine is not invoked for a DELETE operation without a WHERE clause that deletes an entire table in a segmented table space.End program-specific programming interface information.