Compare commits
No commits in common. "master" and "mqssave-1_1_1" have entirely different histories.
master
...
mqssave-1_
1338
MQSSave.java
1338
MQSSave.java
File diff suppressed because it is too large
Load Diff
48
ReadMe.txt
48
ReadMe.txt
@ -1,8 +1,8 @@
|
||||
# $RCSfile: ReadMe.txt,v $
|
||||
# $Revision: 1.6 $
|
||||
# $Revision: 1.3 $
|
||||
# $Name: $
|
||||
# $Date: 2009/01/05 17:40:17 $
|
||||
# $Author: agibert $
|
||||
# $Date: 2002/05/03 17:23:49 $
|
||||
# $Author: giberta1 $
|
||||
|
||||
|
||||
|
||||
@ -10,7 +10,6 @@
|
||||
|
||||
Compilation:
|
||||
------------
|
||||
|
||||
- Just type: "javac MQSSave.java" !
|
||||
|
||||
|
||||
@ -22,42 +21,10 @@ Installation:
|
||||
|
||||
|
||||
|
||||
Usage:
|
||||
------
|
||||
|
||||
MQSSave [-qm "Input_QueueMng_Name"] [-cc] [-cs "character_set"] [-st "sleep_time"] [-mb "message_break"] [-cm] [-tm] [-mbtm] [-bem] [-ms "message_skip"] [-mc "message_count"] [-rc "repeat_count"] <Output_File_Name> <Input_MsgQueue_Name>
|
||||
|
||||
Default: Input QueueMng Name: () Character Convert: (false) Character Set: (1208) Sleep Time: (0) Message Break: (\r\n) Copy Mode: (false) Trim Mode: (false) MsgBreak Trailer Mode: (false) Best Effort Mode: (false) Message Skip: (0) Message Count: (0) Repeat Count: (1)
|
||||
|
||||
|
||||
|
||||
Arguments:
|
||||
----------
|
||||
|
||||
- Optional arguments:
|
||||
-qm "Input_QueueMng_Name": Name of the queue manager to use,
|
||||
-cc "character_convert": Switch on the caracter conversion (Set the MQGetMessageOptions to MQC.MQGMO_CONVERT),
|
||||
-cs "character_set": MQMessage character set,
|
||||
-st "sleep_time": Delay between message sending,
|
||||
-mb "message_break": String used as message separator,
|
||||
-cm "copy_mode": Don't remove messages from queue,
|
||||
-tm "trim_mode": Remove trailing spaces at the message end,
|
||||
-mbtm "msg_break_trailer_mode": Add a message break at the end of the last message,
|
||||
-bem "best effort mode": Skip errors and continue to save the next message,
|
||||
-ms "message_skip": Number of message to skip before to start the saving,
|
||||
-mc "message_count": Number of message to save,
|
||||
-rc "repeat_count": Number of time the whole process (start of file + skip + save) should be repeated.
|
||||
|
||||
- Mandatory arguments:
|
||||
<Output_File_Name>: Name of the output file to save to,
|
||||
<Input_MsgQueue_Name>: Name of the input message queue to save from.
|
||||
|
||||
|
||||
|
||||
Notes:
|
||||
------
|
||||
|
||||
- MQSSave has been tested with WMQ 6.0.
|
||||
- MQSSave has been tested with MQ/Series 5.2,
|
||||
|
||||
- "-mb" argument accept a string with formated escape character:
|
||||
+ "\n" for newline,
|
||||
@ -70,9 +37,10 @@ Notes:
|
||||
- Windows text files: newline is specified as "\r\n",
|
||||
- Unix text files: newline is specified as "\n".
|
||||
|
||||
- When trim mode is enabled (by setting "-tm" command line switch), all the trailing spaces are removed.
|
||||
- The Flush File is only used when TI Swift Batch Mode is enabled (by setting "-tisbm" command line switch).
|
||||
|
||||
- By default Message break is "\r\n",
|
||||
- By default Flush File Name is "flush.txt".
|
||||
|
||||
- This software is under the GNU General Public License. See GNU-GPL.txt.
|
||||
|
||||
@ -84,5 +52,5 @@ Usage Example:
|
||||
- To save the messages of the MQ/Series "SWIFT-QUEUE" queue into a swift batch file "swift-batch.txt" with "---MESSAGE-BREAK---" message separator use:
|
||||
java MQSSave -mb "---MESSAGE-BREAK---\r\n" swift-batch.txt SWIFT-QUEUE
|
||||
|
||||
- To save 10 times the third message of the MQ/Series "SWIFT-QUEUE" queue into a swift batch file "swift-batch.txt" with "---MESSAGE-BREAK---" message separator without removing it from the queue use:
|
||||
java MQSSave -mb "---MESSAGE-BREAK---\r\n" -cm -ms 2 -mc 1 -rc 10 swift-batch.txt SWIFT-QUEUE
|
||||
- To save the messages of the MQ/Series "SWIFT-QUEUE" queue into a swift batch file "swift-batch.txt" with no message break message and by using the TI Swift Batch Mode, use:
|
||||
java MQSSave -mb "" -tisbm swift-batch.txt SWIFT-QUEUE
|
||||
|
102
ReleaseNotes.txt
102
ReleaseNotes.txt
@ -1,105 +1,15 @@
|
||||
# $RCSfile: ReleaseNotes.txt,v $
|
||||
# $Revision: 1.16 $
|
||||
# $Revision: 1.4 $
|
||||
# $Name: $
|
||||
# $Date: 2009/01/05 17:41:42 $
|
||||
# $Author: agibert $
|
||||
# $Date: 2002/05/06 10:00:34 $
|
||||
# $Author: giberta1 $
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
MQSSave V 2.0.0 - A. Gibert - 2009/01/05
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
- Major code rewrite and cleanup,
|
||||
- Add binary data support,
|
||||
- Drop obsolete TI swift batch mode support,
|
||||
- Add message skip option "-ms",
|
||||
- Add message count option "-mc",
|
||||
- Add repeat count option "-rc",
|
||||
- Add character convert option "-cc",
|
||||
- Add character set option "-cs",
|
||||
- Add best effort mode "-bem",
|
||||
- Add error message count,
|
||||
- Fix Java 1.4 compatibility.
|
||||
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
MQSSave V 1.3.2 - A. Gibert - 2008/11/10
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Fix elapsed time computation !
|
||||
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
MQSSave V 1.3.1 - A. Gibert - 2008/01/03
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Fix usage print out.
|
||||
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
MQSSave V 1.3.0 - C. Colin / A. Gibert - 2007/12/10
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Add sleep time option "-st".
|
||||
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
MQSSave V 1.2.0 - A. Gibert - 2007/06/05
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Add queue manager name option "-qm".
|
||||
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
MQSSave V 1.1.5 - A. Gibert - 2003/09/04
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Add message break trailer mode support,
|
||||
Add -mbtm option,
|
||||
Add copy mode support,
|
||||
Add "-cm" option.
|
||||
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
MQSSave V 1.1.4 - A. Gibert - 2002/07/29
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Fix trim mode support when tisbm off.
|
||||
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
MQSSave V 1.1.3 - A. Gibert - 2002/05/21
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Add trim mode support,
|
||||
Add "-tm" option,
|
||||
Add MQQueueManager() auto retry,
|
||||
Fix flush file name bad parsing bug,
|
||||
Add version, date and author print out.
|
||||
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
MQSSave V 1.1.2 - A. Gibert - 2002/05/13
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Rename SWIFTABORT into SWIFTERROR,
|
||||
Add Legend printout line.
|
||||
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
MQSSave V 1.1.1 - A. Gibert - 2002/05/06
|
||||
MQSSave V 1.1.1 - A. Gibert - 06/05/02
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Add return code handling.
|
||||
@ -107,7 +17,7 @@ Add return code handling.
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
MQSSave V 1.1.0 - A. Gibert - 2002/05/03
|
||||
MQSSave V 1.1.0 - A. Gibert - 03/05/02
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Add TI Swift batch mode support,
|
||||
@ -119,7 +29,7 @@ Fix MQSSave usage print: replace MQSLoad by MSSave !
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
MQSSave V 1.0.0 - A. Gibert - 2002/04/23
|
||||
MQSSave V 1.0.0 - A. Gibert - 23/04/02
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
First release.
|
||||
|
@ -1 +0,0 @@
|
||||
ISO [И]
|
@ -1 +0,0 @@
|
||||
UTF8 [é]
|
@ -1,49 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
function file_load
|
||||
{
|
||||
out="$1"
|
||||
in="$2"
|
||||
cc="$3"
|
||||
cs="$4"
|
||||
|
||||
echo -n "CC: [$cc] CS: [$cs] $(cat $in)" >$$.tmp
|
||||
|
||||
mqsload -mb '\n---\n' $cc -cs $cs $out $$.tmp
|
||||
|
||||
\rm $$.tmp
|
||||
}
|
||||
|
||||
function file_save
|
||||
{
|
||||
out="$1"
|
||||
in="$2"
|
||||
cc="$3"
|
||||
cs="$4"
|
||||
cm="$5"
|
||||
|
||||
mqssave -mb '\n---\n' $cc -cs $cs $cm -bem $out $in
|
||||
}
|
||||
|
||||
|
||||
|
||||
file_load DLQ test-charset-in-utf "-cc" 1208
|
||||
file_load DLQ test-charset-in-utf "-cc" 819
|
||||
file_load DLQ test-charset-in-iso "-cc" 1208
|
||||
file_load DLQ test-charset-in-iso "-cc" 819
|
||||
|
||||
file_load DLQ test-charset-in-utf " " 1208
|
||||
file_load DLQ test-charset-in-utf " " 819
|
||||
file_load DLQ test-charset-in-iso " " 1208
|
||||
file_load DLQ test-charset-in-iso " " 819
|
||||
|
||||
|
||||
|
||||
|
||||
\rm test-charset-out-cc-utf test-charset-out-cc-iso test-charset-out-__-utf test-charset-out-__-iso
|
||||
|
||||
file_save test-charset-out-cc-utf DLQ "-cc" 1208 "-cm"
|
||||
file_save test-charset-out-cc-iso DLQ "-cc" 819 "-cm"
|
||||
|
||||
file_save test-charset-out-__-utf DLQ " " 1208 "-cm"
|
||||
file_save test-charset-out-__-iso DLQ " " 819 " "
|
Loading…
Reference in New Issue
Block a user