| Author | Message | 
		
		  | wmqiadmin | 
			  
				|  Posted: Thu Apr 05, 2007 5:43 am    Post subject: MQRFH2, mcd properties not working-Urgent |   |  | 
		
		  |  Disciple
 
 
 Joined: 19 Jun 2005Posts: 163
 Location: epping UK
 
 | 
			  
				| Hi All, 
 I am trying to set mcd properties in esql and its not getting set.
 
 my code:
 SET OutputRoot.MQRFH2.(MQRFH2.Field)Version = MQRFH_VERSION_2;
 SET OutputRoot.MQRFH2.(MQRFH2.Field)Format = MQFMT_STRING;
 SET OutputRoot.MQRFH2.(MQRFH2.Field)Encoding = 546;
 SET OutputRoot.MQRFH2.(MQRFH2.Field)CodedCharSetId = 437;
 SET OutputRoot.MQRFH2.(MQRFH2.Field)NameValueCCSID = 1208;
 
 SET OutputRoot.MQRFH2.mcd.Msd = 'mrm';
 SET OutputRoot.MQRFH2.mcd.Set = 'MessageSet';
 SET OutputRoot.MQRFH2.mcd.Fmt = 'CWF1';
 SET OutputRoot.MQRFH2.mcd.Type = 'Message';
 
 Broker initilize the values but when message passes the compute node it doens't store the values, it gets wiped off. Can any buddy please help me, how to store the values in the mcd folder and pass them through the message flow to the output node.
 
 Thanks
 wmqiadmin
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | jefflowrey | 
			  
				|  Posted: Thu Apr 05, 2007 5:54 am    Post subject: |   |  | 
		
		  | Grand Poobah
 
 
 Joined: 16 Oct 2002Posts: 19981
 
 
 | 
			  
				| Set them in Properties instead of the MQRFH2 directly. _________________
 I am *not* the model of the modern major general.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | wmqiadmin | 
			  
				|  Posted: Thu Apr 05, 2007 6:23 am    Post subject: |   |  | 
		
		  |  Disciple
 
 
 Joined: 19 Jun 2005Posts: 163
 Location: epping UK
 
 | 
			  
				| 
   
	| jefflowrey wrote: |  
	| Set them in Properties instead of the MQRFH2 directly. |  
 Thanks Jeff its working now, but one little problem:
 
 Broker is overwriting the message domain to xmlns, because the output message is xmlns and i want to keep it as MRM.
 
 Because my next flow uses the MRM message domain, so how can i keep it to MRM?
 
 thanks
 wmqiadmin
 
 Last edited by wmqiadmin on Thu Apr 05, 2007 6:34 am; edited 1 time in total
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | jefflowrey | 
			  
				|  Posted: Thu Apr 05, 2007 6:33 am    Post subject: |   |  | 
		
		  | Grand Poobah
 
 
 Joined: 16 Oct 2002Posts: 19981
 
 
 | 
			  
				| Maybe you should set it "MRM" instead of "mrm". _________________
 I am *not* the model of the modern major general.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | wmqiadmin | 
			  
				|  Posted: Thu Apr 05, 2007 6:37 am    Post subject: |   |  | 
		
		  |  Disciple
 
 
 Joined: 19 Jun 2005Posts: 163
 Location: epping UK
 
 | 
			  
				| Reposting it, guess you missed these changes 
 Thanks Jeff its working now, but one little problem:
 
 Broker is overwriting the message domain to xmlns, because the output message is xmlns and i want to keep it as MRM.
 
 Because my next flow uses the MRM message domain, so how can i keep it to MRM?
 
 thanks
 wmqiadmin
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | jefflowrey | 
			  
				|  Posted: Thu Apr 05, 2007 6:45 am    Post subject: |   |  | 
		
		  | Grand Poobah
 
 
 Joined: 16 Oct 2002Posts: 19981
 
 
 | 
			  
				| I suspect you're putting in a complicated solution for something that's a lot simpler than you think it is. 
 Are you trying to use one flow to force another flow to parse a message in a certain way?  I'm not sure that's a great idea.
 _________________
 I am *not* the model of the modern major general.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | fjb_saper | 
			  
				|  Posted: Thu Apr 05, 2007 1:58 pm    Post subject: |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 18 Nov 2003Posts: 20767
 Location: LI,NY
 
 | 
			  
				| 
   
	| wmqiadmin wrote: |  
	| Reposting it, guess you missed these changes 
 Thanks Jeff its working now, but one little problem:
 
 Broker is overwriting the message domain to xmlns, because the output message is xmlns and i want to keep it as MRM.
 
 Because my next flow uses the MRM message domain, so how can i keep it to MRM?
 
 thanks
 wmqiadmin
 |  Use an RCD node before posting the message and make it MRM. Specify the MRM attributes in the OutputRoot.Properties... et voila it should work...
 
 Alternatively put an RCD at the beginning of your next flow and have it redefine the stream as MRM....
 
 Enjoy
    _________________
 MQ & Broker admin
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |