MQCONNX environment variable
Use this information to understand the different MQCONNX call options and how they are used with MQ_CONNECT_TYPE. Note that 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, we 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.
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, we can use MQCNO_NONE, which defaults to MQCNO_STANDARD_BINDING.