ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Transfer messages from one xmitq to another

Post new topic  Reply to topic
 Transfer messages from one xmitq to another « View previous topic :: View next topic » 
Author Message
MKHODER1
PostPosted: Fri Jun 30, 2023 10:56 am    Post subject: Transfer messages from one xmitq to another Reply with quote

Apprentice

Joined: 18 Aug 2018
Posts: 31

Hi,

I want to transfer messages from an xmitq xmitq1 to another xmitq xmitq2 in order to send them to another queue manager.

A message that exists in an xmitq contains a transmission queue header.

I exported the messages that exist in xmitq1 into a file with qload, then I replaced the queue manager name with the new one.
qload.sh -i xmitq1 -dt -f out.txt

sed -i 's/QM1/QM2/g' out.txt

I loaded the file into xmitq2 and got the following error:
qload.sh -o xmitq2 -f out.txt

Error: MQPUT(xmitq2) failed RC(2013) Expiry error.

Could you help me ? Is there any solution to transfer messages from xmitq to another ?

Thanks
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Jun 30, 2023 12:39 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9400
Location: US: west coast, almost. Otherwise, enroute.

https://www.ibm.com/docs/en/ibm-mq/8.0?topic=commands-dmpmqmsg

Search google for "mqrc 2013" to look for preventive- or corrective-service.

Other than that, I'd guess that the reason the re-load failed is that the message expiry value set in the application mqmd has elapsed.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
Andyh
PostPosted: Sat Jul 01, 2023 6:05 am    Post subject: Reply with quote

Master

Joined: 29 Jul 2010
Posts: 237

After an MQGET the expiry field in the MQMD shows the remaining expiry time for the message.
When you do an MQPUT of a message with an explicit xmitq header the expiry time in the MQMD within the MQXMIT header MUST match the expiry time in the actual MQMD.

The MQGET issued as part of the first qload unloading the will result in the MQMD expiry field being updated, but not the corresponding field in the MQXMIT header, thus when the corresponding MQPUT when reloading the queue occurs the two expiry fields do not match and the QMgr rejects the MQPUT.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Jul 01, 2023 9:15 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Unless you need to copy the message for the other queue manager this is a very poor way to do so.
If you just want to send the message to the second queue manager, because the original destination is no longer available, I would suggest the following
  1. Create a queue manager alias for the original queue manager in the target queue manager
  2. Create the channel to the new destination queue manager
  3. Enter the original XMITQ into the new channel
  4. Set the (new) channel name in the Trigger Data of the original XMITQ
  5. start the new channel
  6. done



_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Transfer messages from one xmitq to another
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.