Disconnect from EDRS Server (QxdaDisconnectEDRS) API


  Required Parameter Group:

1 Connection handle Input Binary(4)
2 Additional disconnection options Input Binary(4)
3 Error code I/O Char(*)

  Service Program: QXDAEDRS

  Default Public Authority: *USE

  Threadsafe: Conditional; see Usage Notes

The Disconnect from EDRS Server (QxdaDisconnectEDRS) API is used to end a connection to a server system.


Authorities and Locks

None.


Required Parameter Group

Connection handle
INPUT; BINARY(4)

The handle number of the connection to end. The connection handle must have been generated by the QxdaConnectEDRS API in the current job and activation group.

Additional disconnection options
INPUT; BINARY(4)

The following are valid disconnection options:

0 - QXDA_DISCONNECT_COMMIT Commit all uncommitted database work when the connection is ended.
1 - QXDA_DISCONNECT_ROLLBACK Roll back all uncommitted database work when the connection is ended.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Usage Notes

This function may be called from the initial thread of a job only.


Error Messages

Message ID Error Message Text
CPF180C E Function &1 not allowed.
CPF24B4 E Severe error while addressing parameter list.
CPF3C90 E Literal value cannot be changed.
CPF9872 E Program or service program &1 in library &2 ended. Reason code &3.
CPFB750 E Connection handle specified not valid.
CPFB751 E Parameter &1 passed not correct.
CPFB752 E Internal error in &1 API.
CPFB756 E Rollback operation performed.
CPFB757 E The connection has been suspended.



API introduced: V4R4

[ Back to top | Database and File APIs | APIs by category ]