We can use commands to display the current settings or to reset the values of IBM MQ environment variables.
We 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, we can use commands to display the current setting or to reset
the value of the variable. The available commands are listed in the subtopic
links. These commands are available on all the IBM MQ MQI client platforms unless otherwise stated.
IBM MQ uses default values for those variables that
we have not set.
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. We can still use the IBM MQ environment variables on your client platform.
Procedure
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
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.