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 » Utility to get messages and write file for each message

Post new topic  Reply to topic
 Utility to get messages and write file for each message « View previous topic :: View next topic » 
Author Message
ivanachukapawn
PostPosted: Wed May 31, 2006 6:18 am    Post subject: Utility to get messages and write file for each message Reply with quote

Knight

Joined: 27 Oct 2003
Posts: 561

Apparently the Q utility has no option to write a file per message. I need a utility to get every message on a queue and to write one file per message. Anybody know of a utility/supportpac to do this?
Back to top
View user's profile Send private message
wschutz
PostPosted: Wed May 31, 2006 6:22 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

You're correct, it doesn't. It would be fairly easy to write a shell or perl script to do this however.

example (using bash):
Code:

declare -i i; i=0; q -I TESTQ | while read rec; do echo $rec > FILE$i; i=$i+1; done

_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Utility to get messages and write file for each message
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.