1 | Connection handle | Input | Binary(4) |
2 | SQL descriptor area | Input | Char(*) |
3 | SQL communications area | Output | Char(136) |
4 | QSQPRCED function template format | Input | Char(8) |
5 | QSQPRCED function template | Input | Char(*) |
6 | Receiver variable | Output | Char(*) |
7 | Length of receiver variable | Input | Binary(4) |
8 | Receiver variable format | Input | Char(8) |
9 | Additional options | Input | Binary(4) |
10 | Error code | I/O | Char(*) |
The Process Remote Extended Dynamic SQL (QxdaProcessExtDynEDRS) API is used to perform extended dynamic SQL operations on the database server system. The SQL operations are performed by the Process Extended Dynamic SQL (QSQPRCED) API.
See the Process Extended Dynamic SQL (QSQPRCED) API documentation for authorities required.
The handle number of the connection on which to perform the extended dynamic SQL operation. The connection handle must have been generated by the QxdaConnectEDRS API in the current job and activation group.
Passes information about the variables being used on a specific SQL statement. The SQLDA is used for passing the address, data type, length, and CCSID for variables on an OPEN, EXECUTE, FETCH, or DESCRIBE function.
The format of the structure is standard and is described more completely in the SQL programming and DB2® for IBM® i SQL reference topic collections.
Returns diagnostic information. It includes the SQLCODE variable, indicating whether an error has occurred. If SQLCODE has a value of 0 after a call to this API, the function was successful.
The format of the structure is standard and is described more completely in the SQL programming and DB2 for i SQL reference topic collections.
The format of the function template being used. The formats of the QSQPRCED function templates are standard. For possible values and complete descriptions, see the Process Extended Dynamic SQL (QSQPRCED) API documentation. The SQLP0100, SQLP0110, SQLP0200, SQLP0210, and SQLP0500 QSQPRCED formats are not supported by the QxdaProcessExtDynEDRS API.
Determines the function to perform, the requested statement to process, and the SQL package to be used. It also contains the text of the statement, which is required for the PREPARE function. For the format of this parameter, see the Process Extended Dynamic SQL (QSQPRCED) API documentation.
The structure in which to return information about the connection. For the format of this parameter, see EXDO0100 Format.
The number of bytes that the calling program provides for the receiver variable data.
The format of the receiver variable template being used. The possible value is:
EXDO0100 | Basic receiver variable |
The following are valid options. The binary OR operation can be used to use more than one of these options together.
The structure in which to return error information. For the format of the structure, see Error code parameter.
The following table shows the information returned in the EXDO0100 format. For more details about the fields in this table, see Field Descriptions.
Offset | Type | Field | |
---|---|---|---|
Dec | Hex | ||
0 | 0 | BINARY(4) | Bytes returned |
4 | 4 | BINARY(4) | Bytes available |
8 | 8 | CHAR(18) | Statement name |
Bytes available. The length of the information available to the API to return, in bytes.
Bytes returned. The actual number of bytes returned.
Statement name. The statement name generated when the QXDA_FIND_STMT option is specified.
This function may be called from the initial thread of a job only.
Message ID | Error Message Text |
---|---|
CPF180C E | Function &1 not allowed. |
CPF24B4 E | Severe error while addressing parameter list. |
CPF3C21 E | Format name &1 is not valid. |
CPF3C90 E | Literal value cannot be changed. |
CPF9872 E | Program or service program &1 in library &2 ended. Reason code &3. |
CPFAE14 E | Cannot allocate &1 bytes. |
CPFB750 E | Connection handle specified not valid. |
CPFB752 E | Internal error in &1 API. |
CPFB756 E | Rollback operation performed. |
CPFB757 E | The connection is suspended. |
CPFB758 E | The EDRS server system has been switched. |
CPFB759 E | Cursor not valid for operation. |
[ Back to top | Database and File APIs | APIs by category ]