Author |
Message
|
shalabh1976 |
Posted: Wed Jun 15, 2005 11:58 pm Post subject: Load queue with multiple input files |
|
|
 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 |
|
 |
JasonE |
Posted: Thu Jun 16, 2005 12:46 am Post subject: |
|
|
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 |
|
 |
wschutz |
Posted: Thu Jun 16, 2005 1:42 am Post subject: |
|
|
 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 |
|
 |
shalabh1976 |
Posted: Thu Jun 16, 2005 2:04 am Post subject: |
|
|
 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 |
|
 |
jefflowrey |
Posted: Thu Jun 16, 2005 3:50 am Post subject: |
|
|
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 |
|
 |
RogerLacroix |
Posted: Thu Jun 16, 2005 8:29 pm Post subject: |
|
|
 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 |
|
 |
shalabh1976 |
Posted: Thu Jun 16, 2005 8:59 pm Post subject: |
|
|
 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 |
|
 |
malammik |
Posted: Fri Jun 17, 2005 7:11 am Post subject: |
|
|
 Partisan
Joined: 27 Jan 2005 Posts: 397 Location: Philadelphia, PA
|
|
Back to top |
|
 |
|