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 Discussion » Dump and restore messages from/to a XMIT queue

Post new topic  Reply to topic
 Dump and restore messages from/to a XMIT queue « View previous topic :: View next topic » 
Author Message
ALCSALCS
PostPosted: Mon Jul 25, 2005 3:58 am    Post subject: Dump and restore messages from/to a XMIT queue Reply with quote

Acolyte

Joined: 14 Apr 2002
Posts: 61

I am trying to find out if I can dump/restore the contents of a XMIT queue in Z/os environment (the sender channel is stopped)

I tried to used CSQUTIL program with COPY function and I got RC=0

MQST.XMIT1.QUEUE is a XMIT queue

CSQU000I CSQUTIL IBM WebSphere MQ for z/OS V5.3.1
CSQU001I CSQUTIL Queue Manager Utility - 2005-07-25 09:50:13
COPY QUEUE(MQST.XMIT1.QUEUE) DDNAME(OUTPUTA)
CSQU128I Executing COPY outputting to OUTPUTA data set
CSQU130I Copying queue MQST.XMIT1.QUEUE
CSQU120I Connecting to MQST
CSQU121I Connected to queue manager MQST
CSQU005I COMMIT successfully completed
CSQU131I 87 messages copied successfully
CSQU132I 175 records written
CSQU133I 1 queues attempted
CSQU134I 1 queues copied successfully
CSQU143I 1 COPY statements attempted
CSQU144I 1 COPY statements executed successfully
CSQU148I CSQUTIL Utility completed, return code=0

87 messages were copied succesfully.

I want to restore the messages from the dataset to the XMIT queue or to a local queue.

I execute CSQUTIL program with LOAD function and I got
RC-0 (in both cases)

CSQU000I CSQUTIL IBM WebSphere MQ for z/OS V5.3.1
CSQU001I CSQUTIL Queue Manager Utility - 2005-07-25 09:54:14
LOAD QUEUE(MQST.XMIT1.QUEUE) DDNAME(OUTPUTA)
CSQU127I Executing LOAD using input from OUTPUTA data set
CSQU120I Connecting to MQST
CSQU121I Connected to queue manager MQST
CSQU135I Loading queue MQST.XMIT1.QUEUE
CSQU155I Loading from queue MQST.XMIT1.QUEUE
CSQU005I COMMIT successfully completed
CSQU136I 0 messages loaded successfully
CSQU137I 1 records read
CSQU133I 1 queues attempted
CSQU138I 1 queues loaded successfully
CSQU143I 1 LOAD statements attempted
CSQU144I 1 LOAD statements executed successfully
CSQU148I CSQUTIL Utility completed, return code=0

but looking at the job output shows 'no messages restored'

The same happens if a try to LOAD to a local queue.

Question:
Why CSQUTIL LOAD looks to work OK (RC-0) but 'no records restored' to a XMIT or LOCAL queue queue.

If CSQUTIL COPY/LOAD doesn't work for XMIT queue, is there any way to dump/restore messages from/to a XMIT queue.

Thanks for any information.
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Mon Jul 25, 2005 6:01 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

i had a quick test, and csqutil works fine for xmitqs. no matter whether i reload to a queue defined usage(normal) or usage(xmit), the reload works fine.

the "loading from queue" in the load job is the reference to the unload, so it looks like the output file created by the unload is fine.

looks strange to me. the manual reads, that the queue "must not be in use" while running the load command, in my case it works anyway, csqutil returns with rc=0 and the messages are stored on the queue.

maybe try to reload to a new, non-used ocal queue first to verify that it works (that your unload is fine), and then retry with the xmitq....

maybe we can have a look at the unload and reload jcl?
_________________
Regards, Butcher
Back to top
View user's profile Send private message
ALCSALCS
PostPosted: Mon Jul 25, 2005 11:22 pm    Post subject: Reply with quote

Acolyte

Joined: 14 Apr 2002
Posts: 61

If you tested succesfully in your environment it means CSQUTIL COPY/LOAD should work for XMIT queues.

I will retry again in my environment.

Many Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Dump and restore messages from/to a XMIT queue
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.