Author |
Message
|
ramki |
Posted: Thu Feb 07, 2002 2:21 pm Post subject: |
|
|
Apprentice
Joined: 25 Sep 2001 Posts: 28
|
Is there a way to check for the queue on the Qmanager. I want to perform this check from MQSI in a node. If the Queue in the Qmanager is not present than I need to create the queue and then send the transformed data to the queue. |
|
Back to top |
|
 |
amigupta1978 |
Posted: Thu Feb 07, 2002 2:55 pm Post subject: |
|
|
Centurion
Joined: 22 Jan 2002 Posts: 132 Location: India
|
Hi,
Yes you can check whether that queue is present or not, by just putting the message on ur Queue and and then check the exception List to see what reason code is returned. If the reason code is Object not found then it means that queue is not present.
Regarding creating the queue I am not quite sure but u can achieve this by sending the PCF command to SYSTEM.ADMIN.COMMAND.QUEUE. There is some MRM format in which you have to send that message but I dont know the exact way how to do it.
Amit |
|
Back to top |
|
 |
ramki |
Posted: Thu Feb 07, 2002 3:04 pm Post subject: |
|
|
Apprentice
Joined: 25 Sep 2001 Posts: 28
|
Thank you very much for the suggestion!
How do we run runmqsc commands im MQSI node. Is there any commandNode etc to run the runmqsc commands
Regards |
|
Back to top |
|
 |
amigupta1978 |
Posted: Thu Feb 07, 2002 3:29 pm Post subject: |
|
|
Centurion
Joined: 22 Jan 2002 Posts: 132 Location: India
|
No there is no command node to run runmqsc commands. All I know is if u want to issue some MQ commands u can actually give a PCF message to SYSTEM.ADMIN.COMMAND.QUEUE. U can give a message to this queue in MQSI but for that u must know about the PCF commands. There is some particular MRM structure which u have to construct and then fill that structure with appropriate values and then give the message to the SYSTEM.ADMIN.COMMAND.QUEUE. For more information u have to see the PCF programming guide but how to do in MQSI I dont exactly know the structure. I just remeber using one such structure for a different thing in my previous project.
Quote: |
On 2002-02-07 15:04, ramki wrote:
Thank you very much for the suggestion!
How do we run runmqsc commands im MQSI node. Is there any commandNode etc to run the runmqsc commands
Regards
|
|
|
Back to top |
|
 |
ramki |
Posted: Thu Feb 07, 2002 3:42 pm Post subject: |
|
|
Apprentice
Joined: 25 Sep 2001 Posts: 28
|
Can you point me to the good documentation and example on
"PCF programming". I need to create the Queue on the qManager from MQSI |
|
Back to top |
|
 |
ramki |
Posted: Fri Feb 08, 2002 7:30 am Post subject: |
|
|
Apprentice
Joined: 25 Sep 2001 Posts: 28
|
Thanks in advance for the help on this.
Is there any example or steps to be followed etc listed somewhere on a PCF message creation. Please let me know any clues or suggestions on this problem.
Thanks again!
|
|
Back to top |
|
 |
kirani |
Posted: Fri Feb 08, 2002 11:59 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
I think you will have to build one MQCFH header into your message. Please refer to "MQSeries Programmable System Management" book for more information. Chapter 10 in this book has some examples about creating PCF commands using MQI.
Regards,
Kiran
|
|
Back to top |
|
 |
|