Parameter list for date and time routines

At invocation, registers are set, and the date or time routine uses the standard exit parameter list (EXPL).

Begin program-specific programming interface information. The following diagram shows how the parameter list points to other information.

Figure 1. How a date or time parameter list points to other information
Begin figure description. The date or time parameter list points to other information. End figure description.

The following list shows the exit-specific parameters, described by macro DSNDDTXP.

Table 1. Parameter list for a date or time routine
Name Hex offset Data type Description
DTXPFN 0 Address Address of a 2-byte integer containing a function code. The codes and their meanings are:
4
Convert from local format to ISO.
8
Convert from ISO to local format.
DTXPLN 4 Address Address of a 2-byte integer containing the length in bytes of the local format. This is the length given as LOCAL DATE LENGTH or LOCAL TIME LENGTH when installing Db2.
DTXPLOC 8 Address Address of the date or time value in local format
DTXPISO C Address Address of the date or time value in ISO format (DTXPISO). The area pointed to is 10 bytes long for a date, 8 bytes for a time.
End program-specific programming interface information.