setmqvar (set mq variable)
Add or remove an environment variable for the appliance or for a specified queue manager.
Purpose
You can use the setmqvar command to configure environment variables for the appliance or for a specified queue manager.
When you set a specific queue manager variable, the changes take effect the next time that the queue manager is started.
When you set a global environment variable, the changes take effect immediately.
Syntax
Parameters
- -m QMgrName
- Specifies the queue manager for which the environment variable is modified.
- -k Name
- Specifies the name of the environment variable to add or remove.
- -v Value
- Specifies the value to add for the specified environment variable.
- -d
- Specifies that the environment variable specified by the -k parameter is deleted.
Usage notes
- This command must be run from the IBM® MQ administration mode. If the system is in the IBM MQ administration mode the prompt includes
mqa(mqcli)#
. To enter the IBM MQ administration mode, entermqcli
on the command line. To exit the IBM MQ administration mode, enterexit
on the command line.
Examples
- The following command adds an environment variable
AMQ_SERVICE_DEBUG_REPOS
with the value ofTRUE
to the queue managerQM1
:setmqvar -m QM1 -k AMQ_SERVICE_DEBUG_REPOS -v TRUE
- The following command deletes the global environment variable
MQ_DEBUG_MODE
:setmqvar -k MQ_DEBUG_MODE -d