Suganthan Raj
Suganthan Raj

Reputation: 2424

How to backup and delete first message in the queue using Shell Script in IBM MQ?

I need to backup the queue and delete the first message in the queue. I have used the below code

./qload -m qmgr SYSTEM.CLUSTER.TRANSMIT.QUEUE -r 1

Also I need to display first message has been deleted

Upvotes: 1

Views: 1898

Answers (1)

Suganthan Raj
Suganthan Raj

Reputation: 2424

I have found the answer.It works for me

qload -m $qmgr -I $qname -f <qmgr>_<qname>_<date>.log -r 1

Upvotes: 1

Related Questions