Parameter list for edit procedures

The parameter list for edit procedures contains pointers to other information, including the authorization ID list.

Begin program-specific programming interface information.

At invocation, registers are set, and the edit procedure uses the standard exit parameter list (EXPL). The following table shows the exit-specific parameter list, as described by macro DSNDEDIT.

Table 1. Parameter list for an edit procedure
Name Hex offset Data type Description
EDITCODE 0 Signed 4-byte integer Edit code telling the type of function to be performed, as follows:
0
Edit-encode row for insert or update
4
Edit-decode row for retrieval
EDITROW 4 Address Address of a row description. The value of this parameter is 0 (zero) if both of the following conditions are true:
  • The edit procedure is insensitive to the format in which Db2 stores the rows of the table.
  • The edit procedure is defined as WITHOUT ROW ATTRIBUTES in CREATE TABLE statements.
  8 Signed 4-byte integer Reserved
EDITILTH C Signed 4-byte integer Length of the input row
EDITIPTR 10 Address Address of the input row
EDITOLTH 14 Signed 4-byte integer Length of output row. On entry, this is the size of the area in which to place the output row. The exit must not modify storage beyond this length.
EDITOPTR 18 Address Address of the output row
End program-specific programming interface information.