Initializing the current command environment with setmqenv
If you receive an error message indicating that an IBM® MQ command is unknown or unavailable, use the setmqenv command to initialize the current command environment so that the operating system can find the appropriate command.
About this task
Each operating system uses the directories in the PATH environment variable
to determine which program to run. If none of the directories in the current
PATH environment variable include an executable program of the specified name,
this causes the operating system to respond with a message indicating that it could not locate the
command, as shown in the following examples:
![[UNIX]](ngunix.gif)
On UNIX and Linux®:% dspmqver ksh: dspmqver: not found. %
On Windows:C:\> dspmqver 'dspmqver' is not recognized as an internal or external command, operable program or batch file.
To resolve this issue, you should use the setmqenv command to initialize the current environment so that the appropriate IBM MQ commands can be located and executed by the operating system.