Using IBM MQ environment variables

This section describes the environment variables that you can use with IBM® MQ MQI client applications.

You can use environment variables in the following ways:
  • Set the variables in your system profile to make a permanent change
  • Issue a command from the command line to make a change for this session only
  • To give one or more variables a particular value dependent on the application that is running, add commands to a command script file used by the application

IBM MQ uses default values for those variables that you have not set.

Commands are available on all the IBM MQ MQI client platforms unless otherwise stated.
[z/OS]Note: IBM MQ for z/OS® does not support any IBM MQ environment variables. If you are using this platform as your server, see Client channel definition table for information about how the client channel definition table is generated on z/OS. You can still use the IBM MQ environment variables on your client platform.

For each environment variable, use the command relevant to your platform to display the current setting or to reset the value of a variable.

On Windows, use the following commands:
  • To remove the value of an environment variable, use the command SET MQSERVER=
  • To display the current setting of an environment variable, use the command SET MQSERVER
  • To display all environment variables for the session, use the command set
On UNIX and Linux® systems, use the following commands:
  • To remove the value of an environment variable, use the command unset MQSERVER
  • To display the current setting of an environment variable, use the command echo $MQSERVER
  • To display all environment variables for the session, use the command set

For information about the individual variables, see the following subtopics: