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 » Extracting queue contents to a file

Post new topic  Reply to topic
 Extracting queue contents to a file « View previous topic :: View next topic » 
Author Message
Hema30
PostPosted: Fri May 14, 2004 12:55 pm    Post subject: Extracting queue contents to a file Reply with quote

Acolyte

Joined: 02 Aug 2003
Posts: 59

could anyone tell me the steps involved to extract the contents of a local queue to a file.On a unix environment.

Thanks
Hema
Back to top
View user's profile Send private message
mqonnet
PostPosted: Fri May 14, 2004 1:09 pm    Post subject: Reply with quote

Grand Master

Joined: 18 Feb 2002
Posts: 1114
Location: Boston, Ma, Usa.

Downlaod File2Msg from Rogers website below and just reverse engineer it.

http://www.capitalware.biz/sample_mqseries.html#ccode

Cheers
Kumar
_________________
IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
JT
PostPosted: Fri May 14, 2004 1:38 pm    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Hema30,

Manually, we use the RFHUTILC tool provided in the IH03 supportpac:
http://www-1.ibm.com/support/docview.wss?rs=203&uid=swg24000637&loc=en_US&cs=utf-8&lang=en

The documentation states:
Quote:
The performance utilities have been written and tested on the Windows 2000, Sun Solaris
and AIX platforms. Full source code, including the Microsoft Visual C++ V6 project files, is
provided for the performance utilities.

So apparently it can be configured to run on a UNIX platform. We prefer to run the utility "out of the box" from our Windows desktops through a .cmd file that points to our Solaris queue managers:
Code:
set MQSERVER=channel/transport/connection(Port)
set PATH=D:\Websphere SupportPacs\ih03;%PATH%
start rfhutilc.exe

The tool allows you to get or browse a queue (as well as put) and write the results to a file.

Best of all....it's free.
Back to top
View user's profile Send private message
kman
PostPosted: Tue May 18, 2004 1:05 am    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2003
Posts: 309
Location: Kuala Lumpur, Malaysia

If you like some bit of programming, you can take the sample amqsget program, make some changes to include the file writing part after the get message, and you end up having your own Msg2File program.

just a thought.
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Extracting queue contents to a file
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.