title: How to remove the message header informations in WebSphere MQ grouped message while receving in .Net client
body: <p>I am trying to recevie logically grouped messages from an remote MQ using .Net client using native api [amqmdnet - WebSphere MQ Classes for .NET], which was put by java client using native api.       </p>
  
  <p>While we are getting the logically grouped messages we are seeing some header information in all the messages in that group which will be showing differently in each editors, [notepad++, editplus etc.]</p>
  
  <p>The below specified header information's is appended in every logical message in that group something like "MDE "</p>
  
  <p>We are using the <code>getmessageoptions</code>, <code>openoptions</code> as below,</p>
  
  <pre><code>mintMQQueueOpenOptions = IBM.WMQ.MQC.MQOO_INPUT_SHARED + IBM.WMQ.MQC.MQOO_FAIL_IF_QUIESCING
  mobjMQGetMessageOptions = New MQGetMessageOptions
  mobjMQGetMessageOptions.Options = IBM.WMQ.MQC.MQGMO_NO_SYNCPOINT +  IBM.WMQ.MQC.MQGMO_FAIL_IF_QUIESCING
  'mobjMQGetMessageOptions.Options = mobjMQGetMessageOptions.Options + MQC.MQGMO_LOGICAL_ORDER  'Or MQC.MQGMO_ALL_MSGS_AVAILABLE
  </code></pre>
  
  <p>Code snippet to read the all the logical message in that group,</p>
  
  <pre><code>            '=================================
              ' INTANTIATE THE MQ MESSAGE OBJECT
              objMQMessage = New MQMessage
              objMQMessage.Format = MQC.MQFMT_STRING
              '=================================
              ' CLEAR THE MESSAGE VARIABLE
              strMQMessage = ""
  
              Do
                  '============================
                  ' GET THE MESSAGE FROM THE MQ
                  mobjMQQueue.Get(objMQMessage, mobjMQGetMessageOptions)
  
                  '============================
                  ' READ THROUGH THE MESSAGE
                  strMQMessage += objMQMessage.ReadString(objMQMessage.MessageLength)
  
                  '============================
                  ' SET GMO.MATCHOPTIONS TO GROUP ID, INITIALLY IT WAS SET TO "MQC.MQMO_NONE"                            
                  mobjMQGetMessageOptions.MatchOptions = MQC.MQMO_MATCH_GROUP_ID
  
                  '============================
                  ' DO UNTIL - MESSAGE IS THE LAST IN THE GROUP OR THE GROUP CONSISTS OF ONLY ONE MESSAGE.
              Loop While (mobjMQGetMessageOptions.GroupStatus &lt;&gt; MQC.MQGS_LAST_MSG_IN_GROUP)
  
              '====================================
              ' COLLECT THE MESSAGE IN AN ARRAYLIST
              If Not String.IsNullOrEmpty(strMQMessage) Then objMQMessageList.Add(strMQMessage)
  
              '============================
              ' COMMIT THE FETCH OPERATION
              mobjMQQueueManager.Commit()
  </code></pre>
  
  <p>How we can remove this header information from each message? </p>