Compare commits

...

25 Commits

Author SHA1 Message Date
agibert
bf1d811041 - Add MQV7 support (Thanks to Yves MOYROUD !) 2013-11-08 17:15:45 +00:00
agibert
b7fcd00035 Minor fix. 2009-01-05 17:47:15 +00:00
agibert
44a23a3a7f Minor Cleanup. 2009-01-05 17:45:40 +00:00
agibert
d6b7c66a7b Fix release date. 2009-01-05 17:43:32 +00:00
agibert
5c1c862d5e Document new options and add an example. 2009-01-05 16:16:59 +00:00
agibert
c939079819 - Add message priority option "-mp",
- Fix usage print out.
2008-12-18 17:23:36 +00:00
agibert
87802fb8c3 - Fix "-cc" usage print. 2008-12-12 10:48:54 +00:00
agibert
d1b66d0c6f - start to improve docs... 2008-12-12 10:47:06 +00:00
agibert
0496074951 - Add character convert option "-cc" 2008-12-12 00:00:31 +00:00
agibert
ee82f99ecc - Minor code changes. 2008-12-11 14:17:18 +00:00
agibert
ffb13ee948 - Total loader rewrite using byte data type: Raw file loading implemenred,
- Add MQ character set support,
- Add Character Set option (-cs).
2008-12-09 15:01:02 +00:00
agibert
542f5b9bd6 - Improve code structuration,
- Fix Message Count = 0 handling,
- Fix printout.
2008-12-04 15:02:16 +00:00
agibert
bc2254cab8 First step to 2.0.*:
- Code cleanup,
- Add message skip option "-ms",
- Add message count option "-mc",
- Add repeat count option "-rc",
- Fix Java 1.4 compatibility.
2008-12-04 10:45:06 +00:00
agibert
f12bcae985 WARNING: Fix a big bug in Load_File() method: all previous MQSLoad versions can corrupt messages during loading !!! 2008-11-14 00:00:51 +00:00
agibert
67b4a7aa8b Fix elapsed time computation ! 2008-11-10 01:50:19 +00:00
agibert
99d17a844e Fix usage print out. 2008-01-03 13:45:42 +00:00
agibert
ded4a3926f Add sleep time option "-st". 2007-12-11 16:46:37 +00:00
agibert
d882d2a6a1 Add queue manager name option "-qm". 2007-06-05 09:22:43 +00:00
agibert
2c55f4ac61 Add in 1.2.0 entry:
Add queue manager name option "-qm".
2007-06-05 09:21:44 +00:00
giberta1
d327c3e4e9 Add in 1.1.3 entry:
Add version, date and author print out.
2002-05-21 15:55:17 +00:00
giberta1
15b8cece80 Add version, date and author print out. 2002-05-21 15:48:09 +00:00
giberta1
20cc7fc471 Add message tail option "-mt" explanations and example. 2002-05-21 15:22:00 +00:00
giberta1
402f904383 Add 1.1.3 entry:
Add message tail option "-mt",
    Add MQQueueManager() auto retry.
2002-05-21 15:08:37 +00:00
giberta1
f3b64d8cc5 Add message tail option "-mt",
Add MQQueueManager() auto retry.
2002-05-21 15:06:27 +00:00
giberta1
c03202827e Replace SWIFTABORT by SWIFTERROR. 2002-05-21 15:00:45 +00:00
5 changed files with 984 additions and 529 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,8 @@
# $RCSfile: ReadMe.txt,v $
# $Revision: 1.6 $
# $Revision: 1.11 $
# $Name: $
# $Date: 2002/05/02 17:24:15 $
# $Author: giberta1 $
# $Date: 2009/01/05 17:45:40 $
# $Author: agibert $
@ -10,6 +10,7 @@
Compilation:
------------
- Just type: "javac MQSLoad.java" !
@ -21,10 +22,42 @@ Installation:
Usage:
------
MQSLoad [-qm "Output_QueueMng_Name"] [-cc] [-cs "character_set"] [-mp "message_priority"] [-st "sleep_time"] [-fb "field_break"] [-mb "message_break"] [-mt "message_tail"] [-kmb] [-ms "message_skip"] [-mc "message_count"] [-rc "repeat_count"] <Output_MsgQueue_Name> <Input_File_Name>
Default: Output QueueMng Name: () Character Convert: (false) Character Set: (1208) Message Priority: (-1) Sleep Time: (0) Field Break: () Message Break: (\r\n) Message Tail: () Keep Message Break: (false) Message Skip: (0) Message Count: (0) Repeat Count: (1)
Arguments:
----------
- Optional arguments:
-qm "Output_QueueMng_Name": Name of the queue manager to use,
-cc "character_convert": Switch on the caracter conversion (Set the MQMessage format to MQC.MQFMT_STRING),
-cs "character_set": MQMessage character set,
-mp "message_priority": Priority of the message,
-st "sleep_time": Delay between message sending,
-fb "field_break": String used as field separator,
-mb "message_break": String used as message separator,
-mt "message_tail": String added at the message end,
-kmb "keep_message_break": Keep the message break (inserted at the message end, next to the message tail),
-ms "message_skip": Number of messages to skip before to start the loading,
-mc "message_count": Number of messages to load,
-rc "repeat_count": Number of time the whole process (start of file + skip + load) should be repeated.
- Mandatory arguments:
<Output_MsgQueue_Name>: Name of the output message queue to load to,
<Input_File_Name>: Name of the input file to load from.
Notes:
------
- MQSLoad has been tested with MQ/Series 5.2,
- MQSLoad has been tested with WMQ 6.0
- "-fb" and "-mb" arguments accept a string with formated escape character:
+ "\n" for newline,
@ -34,6 +67,7 @@ Notes:
- Message breaks are used for message separation in the batch file,
- Message breaks are striped from the sended message if "-kmb" (keep message break) is not set,
- Message tail specified after "-mt" option is inserted between message and message break,
- Field breaks are striped from the sended message.
- Windows text files: newline is specified as "\r\n",
@ -53,7 +87,15 @@ Usage Examples:
- To load a swift batch file "swift-batch.txt" with "---MESSAGE-BREAK---" message separator into the MQ/Series "SWIFT-QUEUE" use:
java MQSLoad -mb "---MESSAGE-BREAK---\r\n" SWIFT-QUEUE swift-batch.txt
- To load 10 time the third message of the file "swift-batch.txt" with "---MESSAGE-BREAK---" as message separator into the MQ/Series "SWIFT-QUEUE" use:
java MQSLoad -mb "---MESSAGE-BREAK---\r\n" -ms 2 -mc 1 -rc 10 SWIFT-QUEUE swift-batch.txt
- To load a raw swift batch file "swift-batch-raw.txt" with "}\r\n" message break into the MQ/Series "SWIFT-QUEUE" and by keeping message break separator use:
java MQSLoad -mb "}\r\n" -kmb SWIFT-QUEUE swift-batch-raw.txt
- To load a raw swift batch file "swift-batch-raw.txt" with "}\r\n" message break into the MQ/Series "SWIFT-QUEUE" and by keeping only "}" as end of message use:
java MQSLoad -mb "}\r\n" -mt "}" SWIFT-QUEUE swift-batch-raw.txt
- To load a csv batch file "batch.csv" with ";" field separator into the MQ/Series "DATA-QUEUE" use:
java MQSLoad -fb ";" DATA-QUEUE csv-batch.csv

View File

@ -1,15 +1,74 @@
# $RCSfile: ReleaseNotes.txt,v $
# $Revision: 1.4 $
# $Revision: 1.16 $
# $Name: $
# $Date: 2002/05/06 09:57:19 $
# $Author: giberta1 $
# $Date: 2009/01/05 17:43:32 $
# $Author: agibert $
--------------------------------------------------------------------------------
MQSLoad V 1.1.2 - A. Gibert - 06/05/02
MQSLoad V 2.0.0 - A. Gibert - 2008/01/05
--------------------------------------------------------------------------------
- Major code rewrite and cleanup,
- Add message skip option "-ms",
- Add message count option "-mc",
- Add repeat count option "-rc",
- Add character set option "-cs",
- Add character convert option "-cc",
- Add message priority option "-mp",
- Fix Java 1.4 compatibility.
--------------------------------------------------------------------------------
MQSLoad V 1.3.2 - A. Gibert - 2008/11/14
--------------------------------------------------------------------------------
- WARNING: Fix a big bug in Load_File() method: all previous MQSLoad versions
can corrupt messages during loading !!!
- Fix elapsed time computation !
--------------------------------------------------------------------------------
MQSLoad V 1.3.1 - A. Gibert - 2008/01/03
--------------------------------------------------------------------------------
Fix usage print out.
--------------------------------------------------------------------------------
MQSLoad V 1.3.0 - C. Colin / A. Gibert - 2007/12/10
--------------------------------------------------------------------------------
Add sleep time option "-st".
--------------------------------------------------------------------------------
MQSLoad V 1.2.0 - A. Gibert - 2007/06/05
--------------------------------------------------------------------------------
Add queue manager name option "-qm".
--------------------------------------------------------------------------------
MQSLoad V 1.1.4 - A. Gibert - 2002/05/21
--------------------------------------------------------------------------------
Add message tail option "-mt",
Add MQQueueManager() auto retry,
Add version, date and author print out.
--------------------------------------------------------------------------------
MQSLoad V 1.1.2 - A. Gibert - 2002/05/06
--------------------------------------------------------------------------------
Add return code handling.
@ -17,7 +76,7 @@ Add return code handling.
--------------------------------------------------------------------------------
MQSLoad V 1.1.1 - A. Gibert - 02/05/02
MQSLoad V 1.1.1 - A. Gibert - 2002/05/02
--------------------------------------------------------------------------------
Add Keep Message Break support,
@ -26,7 +85,7 @@ Add -kmb option.
--------------------------------------------------------------------------------
MQSLoad V 1.1.0 - A. Gibert - 23/04/02
MQSLoad V 1.1.0 - A. Gibert - 2002/04/23
--------------------------------------------------------------------------------
Add string field break and string message break support,
@ -41,7 +100,7 @@ Add GPL and FDL licenses files.
--------------------------------------------------------------------------------
MQSLoad V 1.0.0 - A. Gibert - 12/07/01
MQSLoad V 1.0.0 - A. Gibert - 2001/07/12
--------------------------------------------------------------------------------
First release,

View File

@ -1,12 +1,13 @@
# $RCSfile: ToDo.txt,v $
# $Revision: 1.2 $
# $Revision: 1.3 $
# $Name: $
# $Date: 2002/04/23 16:25:50 $
# $Author: giberta1 $
# $Date: 2008/12/12 10:47:06 $
# $Author: agibert $
- write a better documentation !
- Add stdin pipe support,
- Write a better documentation !
- ...

View File

@ -70,7 +70,7 @@ MAROC
:71A:BEN
-}{5:{MAC:BCED2F18}{CHK:075B64FB4533}}
---MESSAGE-BREAK---
SWIFTABORT
SWIFTERROR
---MESSAGE-BREAK---
SWIFTBEGIN
---MESSAGE-BREAK---