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 » Load queue with multiple input files

Post new topic  Reply to topic
 Load queue with multiple input files « View previous topic :: View next topic » 
Author Message
shalabh1976
PostPosted: Wed Jun 15, 2005 11:58 pm    Post subject: Load queue with multiple input files Reply with quote

Partisan

Joined: 18 Jul 2002
Posts: 381
Location: Gurgaon, India

I have a test bed with around 100 input files ( 1 for each test case).
Using RFHUTIL I am able to select 1 file using Read File and then send it as input using Write queue. However this process takes too long for all the files.
I wanted to know a method / tool whereby I can select a folder/multiple files and when I load them all the files are read into the queue.
This will eliminate a lot of manual work.
_________________
Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
JasonE
PostPosted: Thu Jun 16, 2005 12:46 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

Would MO03 (http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg24009368&loc=en_US&cs=utf-8&lang=en) help with this in that you can batch up a load using multiple command line calls?
Back to top
View user's profile Send private message
wschutz
PostPosted: Thu Jun 16, 2005 1:42 am    Post subject: Reply with quote

Jedi Knight

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

I assume the platform is windows? If its unix, use can use the "for" command with ma01 to load the files ....

for i in `ls`;do ./q -oQueue -f$i;done
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
shalabh1976
PostPosted: Thu Jun 16, 2005 2:04 am    Post subject: Reply with quote

Partisan

Joined: 18 Jul 2002
Posts: 381
Location: Gurgaon, India

Thanks for the answers but this is what is given in the pdf which comes with the support pac:
Quote:
The WebSphere MQ Queue Load / Unload Utility allows the user to copy or move the contents of a queue, its messages, to a file. This file can be saved away as required and used at some later point to reload the messages back onto the queue. This file has a specific format understood by the utility, but is human-readable, so that it can be updated in an editor before being reloaded. Care should be taken not to change the format when editing fields within it. The utility will only reload a file with the correct format.


As you can see this does not solve my problem.
BTW the platform is Windows.
_________________
Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
jefflowrey
PostPosted: Thu Jun 16, 2005 3:50 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I think Roger's, err I mean Mr. CapitalWare's, MQBatchToolkit can be used for this.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Thu Jun 16, 2005 8:29 pm    Post subject: Reply with quote

Jedi Knight

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

Hi,

Yes, both MQ Visual Edit and MQ Batch Toolkit can load files in a directory and put them as messages in a queue.

- MQ Visual Edit is a GUI / interactive tool
- MQ Batch Toolkit is a command-line / shell scripting tool.

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
shalabh1976
PostPosted: Thu Jun 16, 2005 8:59 pm    Post subject: Reply with quote

Partisan

Joined: 18 Jul 2002
Posts: 381
Location: Gurgaon, India

I downloaded Visual Edit and it has solved my problem. Thanks.
_________________
Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
malammik
PostPosted: Fri Jun 17, 2005 7:11 am    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

there is mqput program as part of the ih03 support pack which can do that.
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Load queue with multiple input files
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.