2001-07-09 17:51:17 +02:00
# $RCSfile: ReadMe.txt,v $
2007-12-11 17:46:37 +01:00
# $Revision: 1.8 $
2001-07-09 17:51:17 +02:00
# $Name: $
2007-12-11 17:46:37 +01:00
# $Date: 2007/12/11 16:46:37 $
# $Author: agibert $
2002-04-23 19:13:45 +02:00
Compilation:
------------
- Just type: "javac MQSLoad.java" !
Installation:
-------------
2002-04-23 20:06:55 +02:00
- You only need the MQSLoad.class file.
2002-04-23 19:13:45 +02:00
Notes:
------
2007-12-11 17:46:37 +01:00
- MQSLoad has been tested with MQ/Series 5.2, 5.3 and WMQ 6.0
2002-04-23 19:13:45 +02:00
2002-04-23 19:17:14 +02:00
- "-fb" and "-mb" arguments accept a string with formated escape character:
2002-04-23 19:13:45 +02:00
+ "\n" for newline,
+ "\r" for return,
+ "\t" for tabulation,
+ "\\" for \.
2002-05-02 19:22:48 +02:00
- 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,
2002-05-21 17:22:00 +02:00
- Message tail specified after "-mt" option is inserted between message and message break,
2002-05-02 19:22:48 +02:00
- Field breaks are striped from the sended message.
2002-04-23 19:13:45 +02:00
- Windows text files: newline is specified as "\r\n",
- Unix text files: newline is specified as "\n".
- By default:
+ There is no field break,
2002-05-02 19:24:15 +02:00
+ Message break is "\r\n",
+ Message breaks are striped.
2002-04-23 19:13:45 +02:00
2002-04-23 19:17:14 +02:00
- This software is under the GNU General Public License. See GNU-GPL.txt.
2002-04-23 19:13:45 +02:00
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
2002-05-02 19:22:48 +02:00
- 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
2002-05-21 17:22:00 +02:00
- 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
2002-04-23 19:13:45 +02:00
- 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