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 IndexIBM MQ API Supportread a Q and put to file with no headers

Post new topicReply to topic
read a Q and put to file with no headers View previous topic :: View next topic
Author Message
jkh
PostPosted: Tue Sep 15, 2015 4:20 am Post subject: read a Q and put to file with no headers Reply with quote

Newbie

Joined: 09 Oct 2013
Posts: 5

Hi,

I want to move messages from a queue to a file. I only want to have the message body not headers and properties. I have tried to use q.exe and qload.exe but I cannot figure out how to only get the bodies into the file. Rfhutil seem to do the job nicely but I want to automate the process and not do the clicking for each queue.

Is there a simple command line Tool that can read message bodies from a queue and put it to a file?



Thanks

Jakob
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Sep 15, 2015 4:36 am Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6061
Location: Somewhere over the Rainbow this side of Never-never land.

amqsget?

I have a modified version that does not put the "message <" etc from the data
The source is supplied with the product.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Sep 15, 2015 5:08 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17092

Some basic java, that modifies the java samples to only write message data?
_________________
Read, Think, Try, Repeat
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Wed Sep 16, 2015 2:48 pm Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 2983
Location: London, ON Canada

You should have a look at MQ Batch Toolkit. Use the Export function with the '-X' option.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ API Supportread a Q and put to file with no headers
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.