CONNID (10-digit signed integer) - output

Connection identifier.

The unique connection identifier associated with an application that is connected to the queue manager (parameter identifier: MQBACF_CONNECTION_ID).

You must specify this parameter or the GenericConnectionId parameter (but not both).

All connections are assigned a unique ID by the queue manager, regardless of how the connection is established. If the connection is established by an MQCONNX with a version 5 MQCNO, the application is able to determine the ConnectionId from the returned MQCNO.

To specify a generic connection identifier, use the GenericConnectionId parameter rather than this one. The only other valid value that ConnectionId can take is that of a specific connection identifier.

The string length of the byte string must be MQ_CONNECTION_ID_LENGTH.

A zero length byte string, or one which contains only null bytes is the same as asking for information about all connection identifiers. This is the only valid value which GenericConnectionId can take. The maximum length of the byte string is MQ_CONNECTION_ID_LENGTH.