Using IBM MQ environment variables

You can use commands to display the current settings or to reset the values of IBM® MQ environment variables.

About this task

You can use environment variables in the following ways:
  • To set the variables in your system profile to make a permanent change
  • To 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
For each environment variable, you can use commands to display the current setting or to reset the value of the variable. These commands are available on all supported platforms unless otherwise stated. The format of the command depends on your platform. For example:
  • [UNIX][Linux]On UNIX and Linux®:
    export [environment variable]=value
  • [Windows]On Windows:
    Set [environment variable]=value
  • [IBM i]On IBM i:
    ADDENVVAR ENVVAR(environment variable) VALUE(xx) 

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

[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 IBM MQ environment variables on your client platform.

Procedure

  • [Windows] On Windows, for each environment variable, use the following commands to display the current setting or to reset the value of a variable:
    • 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
  • [UNIX][Linux] On UNIX and Linux, for each environment variable, use the following commands to display the current setting or to reset the value of a variable:
    • 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.