Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MQ in command prompt

Tags:

ibm-mq

I have installed MQ in my machine(have checked that with regedit32) But i get the error "cannot recognise the command" when i type "runmqsc" in command prompt (Environment variable is set for mqjms.jar ) What am i missing ? I want to create quemanagers and queue through command prompt in window

like image 566
Subashree Venkatraman Avatar asked Sep 16 '25 09:09

Subashree Venkatraman


2 Answers

What version of MQ are you using? (You can check by entering dspmqver in the command prompt)

To create a queue manager you should use the command crtmqm. For eaxmple if you'd like to create a queue manager using the default values and name it MyQueueManager, you should enter the following command:

crtmqm MyQueueManager

In any case I would recommend on creating queue managers through MQ Explorer, supposing you've installed it. It's much easier and fool proof.

If you still want to work with the command prompt, after you've created your queue manager, type the following:

runmqsc MyQueueManager

This command will open the MQSC shell which you can use to create objects (such as queues) in your queue manager.

To create a queue with default values named 'MyQueue' enter:

DEFINE QLOCAL('MyQueue')
like image 161
Remoba Avatar answered Sep 18 '25 21:09

Remoba


You look like a beginner to MQ. I suggest you read on MQ first little bit and then start exploring. You can find information on MQ v7.5 here: http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.pro.doc/q001010_.htm?cp=SSFKSJ_7.5.0%2F1.

BTW there is no 'runmqm' command. You can use 'dspmqver' command to display the version of MQ you have installed and 'dspmq' to display list of queue managers running on that machine.

like image 41
Shashi Avatar answered Sep 18 '25 21:09

Shashi