|  | 
 
  
    | RSS Feed - WebSphere MQ Support | RSS Feed - Message Broker Support |  
 
  
	|    |  |  
  
	| MQMD Version 1 or 2? | « View previous topic :: View next topic » |  
  	| 
		
		
		  | Author | Message |  
		  | JoePanjang | 
			  
				|  Posted: Tue Sep 30, 2003 11:26 pm    Post subject: MQMD Version 1 or 2? |   |  |  
		  | Voyager
 
 
 Joined: 10 Jul 2002Posts: 88
 Location: Dengkil MALAYSIA
 
 | 
			  
				| Hi, 
 By default mqseries (os390 v5.2) came with MQMD version 1. There was an extension of those mqmd ie mqmde which is MQMD version 2 with extra fields. I have 2 questions about those version:-
 (1) can 1 use both mqmd + mqmde as my standard message header? meaning define mqmd but with version 2 and add extra fields from mqmde or have to use both as difference libraries.
 (2) when do we normally use this mqmde? is this coming only with v5.2 & above?
 
 Thanks,
 
 Joe
 
  |  |  
		  | Back to top |  |  
		  |  |  
		  | raj.in | 
			  
				|  Posted: Wed Oct 01, 2003 2:19 am    Post subject: |   |  |  
		  | Novice
 
 
 Joined: 15 Sep 2003Posts: 10
 Location: India
 
 | 
			  
				| Hi Joe , 
 The MQMDE structure contains those MQMD fields that exist in the version-2 MQMD, but not in the version-1 MQMD . Declaration for the version-1 structure is available with the name MQMD1 & version-2 with the name MQMD in cmqc.h file .
 
 ie ,
 MQMD (version-2)
 MQMD1 (version-1)
 MQMDE (fields that exist in the version-2  , but not in the version-1)
 
 A version-2 MQMD is generally equivalent to using a version-1 MQMD and prefixing the application message data with an MQMDE structure. However, if all of the fields in the MQMDE structure have their default values, the MQMDE can be omitted.
 
 Normal applications should use a version-2 MQMD and they will not encounter an MQMDE structure. However, applications that continue to use a version-1 MQMD, may encounter an MQMDE in some situations as
 
 Specified on the MQPUT and MQPUT1 calls
 Returned by the MQGET call
 In messages on transmission queues
 
 For further details please refer  Chapter 11. MQMDE - Message descriptor extension in Application Programming Reference (5.03V )
 
 
 cheers
   Raj
 |  |  
		  | Back to top |  |  
		  |  |  
		  |  |  |  
  
	|    |  | Page 1 of 1 |  
 
 
  
  	| 
		
		  | 
 
 | You cannot post new topics in this forum You cannot reply to topics in this forum
 You cannot edit your posts in this forum
 You cannot delete your posts in this forum
 You cannot vote in polls in this forum
 
 |  |  |  |