| Author | Message | 
		
		  | MizukiYamato | 
			  
				|  Posted: Fri Jun 07, 2019 2:29 am    Post subject: How to set MQMD.Version = 1 by ESQL? |   |  | 
		
		  |  Apprentice
 
 
 Joined: 16 Dec 2009Posts: 45
 Location: Japan
 
 | 
			  
				| Hi All, 
 We need to set MQMD.Version = 1 by ESQL.
 
 We run below code and put message by MQOutput node, but we got MQMD.Version = 2 message.
 
 
   
	| Code: |  
	| SET OutputRoot.MQMD.Version = 1;
 
 |  
 How can I set it?
 
 Regards for any comment.[/code]
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | abhi_thri | 
			  
				|  Posted: Fri Jun 07, 2019 3:49 am    Post subject: |   |  | 
		
		  |  Knight
 
 
 Joined: 17 Jul 2017Posts: 516
 Location: UK
 
 | 
			  
				| hi...any specific reason that you want to use the version 1? try using the constant MQMD_VERSION_1 and see |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | MizukiYamato | 
			  
				|  Posted: Fri Jun 14, 2019 3:21 am    Post subject: |   |  | 
		
		  |  Apprentice
 
 
 Joined: 16 Dec 2009Posts: 45
 Location: Japan
 
 | 
			  
				| Because existing customer's MQ client application consumes version=1 message, and we want to send the same message as well as. 
 We set MQMD_VERSION_1 with the same result.
  |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | fjb_saper | 
			  
				|  Posted: Fri Jun 14, 2019 4:25 am    Post subject: |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 18 Nov 2003Posts: 20767
 Location: LI,NY
 
 | 
			  
				| I'd expect the MQMD-VERSION to be an attribute set by the qmgr when the message is put. So you may not have a choice. For your app to expect a version 1: how old is your app, can / could it handle a version 2?  _________________
 MQ & Broker admin
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | rekarm01 | 
			  
				|  Posted: Mon Jun 17, 2019 3:53 pm    Post subject: |   |  | 
		
		  | Grand Master
 
 
 Joined: 25 Jun 2008Posts: 1415
 
 
 | 
			  
				| 
   
	| MizukiYamato wrote: |  
	| Because existing customer's MQ client application consumes version=1 message, and we want to send the same message as well as. |  According to the Knowledge Center:
 
 
 
   
	| Quote: |  
	| When using the MQMD parser, the MQMD is assumed to be a V2 MQMD. |  But it still might be worth asking IBM to confirm or clarify this.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |