Use of MQCONNX call options with MQ_CONNECT_TYPE

Use this information to understand the different MQCONNX call options and how they are used with the MQ_CONNECT_TYPE environment variable.

Note: MQ_CONNECT_TYPE only has any effect for STANDARD bindings. For other bindings, MQ_CONNECT_TYPE is ignored.

On IBM® MQ for IBM i, IBM MQ for Windows, and IBM MQ on UNIX and Linux® systems, you can use the environment variable, MQ_CONNECT_TYPE in combination with the type of binding specified in the Options field of the MQCNO structure used on an MQCONNX call.

Table 1. How MQCONNX call options are used with the MQ_CONNECT_TYPE environment variable
MQCONNX call option MQ_CONNECT_TYPE environment variable Result
STANDARD UNDEFINED STANDARD
STANDARD STANDARD STANDARD
STANDARD FASTPATH STANDARD
STANDARD CLIENT CLIENT
STANDARD LOCAL STANDARD

If MQCNO_STANDARD_BINDING is not specified, you can use MQCNO_NONE, which defaults to MQCNO_STANDARD_BINDING.