Compare commits
	
		
			No commits in common. "master" and "mqsload-1_3_2" have entirely different histories.
		
	
	
		
			master
			...
			mqsload-1_
		
	
		
							
								
								
									
										1474
									
								
								MQSLoad.java
									
									
									
									
									
								
							
							
						
						
									
										1474
									
								
								MQSLoad.java
									
									
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										47
									
								
								ReadMe.txt
									
									
									
									
									
								
							
							
						
						
									
										47
									
								
								ReadMe.txt
									
									
									
									
									
								
							@ -1,7 +1,7 @@
 | 
			
		||||
# $RCSfile: ReadMe.txt,v $
 | 
			
		||||
# $Revision: 1.11 $
 | 
			
		||||
# $Revision: 1.8 $
 | 
			
		||||
# $Name:  $
 | 
			
		||||
# $Date: 2009/01/05 17:45:40 $
 | 
			
		||||
# $Date: 2007/12/11 16:46:37 $
 | 
			
		||||
# $Author: agibert $
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -10,7 +10,6 @@
 | 
			
		||||
 | 
			
		||||
Compilation:
 | 
			
		||||
------------
 | 
			
		||||
 | 
			
		||||
	- Just type: "javac MQSLoad.java" !
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -22,43 +21,11 @@ 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 WMQ 6.0
 | 
			
		||||
	  
 | 
			
		||||
	- MQSLoad has been tested with MQ/Series 5.2, 5.3 and WMQ 6.0
 | 
			
		||||
 | 
			
		||||
	- "-fb" and "-mb" arguments accept a string with formated escape character:
 | 
			
		||||
		+ "\n" for newline,
 | 
			
		||||
		+ "\r" for return,
 | 
			
		||||
@ -87,15 +54,9 @@ 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
 | 
			
		||||
 | 
			
		||||
@ -1,28 +1,13 @@
 | 
			
		||||
# $RCSfile: ReleaseNotes.txt,v $
 | 
			
		||||
# $Revision: 1.16 $
 | 
			
		||||
# $Revision: 1.11 $
 | 
			
		||||
# $Name:  $
 | 
			
		||||
# $Date: 2009/01/05 17:43:32 $
 | 
			
		||||
# $Date: 2008/11/14 00:00:51 $
 | 
			
		||||
# $Author: agibert $
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
--------------------------------------------------------------------------------
 | 
			
		||||
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
 | 
			
		||||
--------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										9
									
								
								ToDo.txt
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								ToDo.txt
									
									
									
									
									
								
							@ -1,13 +1,12 @@
 | 
			
		||||
# $RCSfile: ToDo.txt,v $
 | 
			
		||||
# $Revision: 1.3 $
 | 
			
		||||
# $Revision: 1.2 $
 | 
			
		||||
# $Name:  $
 | 
			
		||||
# $Date: 2008/12/12 10:47:06 $
 | 
			
		||||
# $Author: agibert $
 | 
			
		||||
# $Date: 2002/04/23 16:25:50 $
 | 
			
		||||
# $Author: giberta1 $
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
- Add stdin pipe support,
 | 
			
		||||
- Write a better documentation !
 | 
			
		||||
- write a better documentation !
 | 
			
		||||
- ...
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user