Posted: Wed Jun 14, 2006 7:18 am Post subject: SYSTEM.ADMIN.COMMAND.QUEUE
Newbie
Joined: 12 Sep 2005 Posts: 7
Hi
I am using Websphere MQ(V5.3) on AS/400(v5r2) . I have a queue manager DUMMY that is Active, the Command Server is also Active.
I want to know how to issue the commands so that it can be processed.
I just put a command CRTMQMQ QNAME(TEST2) QTYPE(*LCL) as a message in the SYSTEM.ADMIN.COMMAND.QUEUE and expected the new queue TEST2 to be created . But it landed up in Dead letter queue with reason code 2029.
Please let me know where I am going wrong, and the right syntax to issue commands in SYSTEM.ADMIN.COMMAND.QUEUE.
Thanks
I think it is only on zOs that the Command Queue accepts text messages. I think on AS/400 you have to issue PCF messages to the command queue.
But your reason code says there is also something else wrong with your code. You are sending a datagram message and not a request message.
Quote:
2029 (X'07ED')
MQRC_MSG_TYPE_ERROR
Explanation:
Either:
* On an MQPUT or MQPUT1 call, the value specified for the MsgType field in the message descriptor (MQMD) is not valid.
* A message processing program received a message that does not have the expected message type. For example, if the WebSphere MQ command server receives a message which is not a request message (MQMT_REQUEST) then it rejects the request with this reason code.
Completion Code:
MQCC_FAILED
Programmer Response:
Specify a valid value for the MsgType field. In the case where a request is rejected by a message processing program, refer to the documentation for that program for details of the message types that it supports.
_________________ I am *not* the model of the modern major general.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum