Adding to what Rich has shared, the command would be.
*corrected the syntax.
------------------------------
om prakash
------------------------------
Original Message:
Sent: Mon July 17, 2023 09:59 AM
From: Rich Harran
Subject: amqsput and amqsget issue
runmqsc is upper-casing the queue name test to TEST, but AMQSPUT0 is not. You have a queue defined called 'TEST', but probably do not have a queue defined called 'test'--perhaps you also defined the queue with runmqsc.
You can upper-case the queue name when you call amqsput, or define the queue in mixed-case when using runmqsc, by enclosing the name in single quotes.
Thanks.
------------------------------
Rich Harran
Original Message:
Sent: Mon July 17, 2023 07:40 AM
From: thirumoorthy viswanathan
Subject: amqsput and amqsget issue
bash-4.4$ strmqm test3
There are 80 days left in the trial period for this copy of IBM MQ.
IBM MQ queue manager running.
bash-4.4$ runmqsc test3
5724-H72 (C) Copyright IBM Corp. 1994, 2020.
Starting MQSC for queue manager test3.
DIS Q(test)
1 : DIS Q(test)
AMQ8409I: Display Queue details.
QUEUE(TEST) TYPE(QLOCAL)
ACCTQ(QMGR) ALTDATE(2023-07-17)
ALTTIME(10.48.55) BOQNAME( )
BOTHRESH(0) CLUSNL( )
CLUSTER( ) CLCHNAME( )
CLWLPRTY(0) CLWLRANK(0)
[root@mq bin]# ./amqsput test test3
Sample AMQSPUT0 start
target queue is test
MQOPEN ended with reason code 2085
unable to open queue for output
Sample AMQSPUT0 end
In mq explorer putting and getting message for local queue is working but in command line its not working..
I have installed mq on linux vm ..
I am new to mq, kindly expecting related info to this issue ..
------------------------------
thirumoorthy viswanathan
------------------------------