Create a message

To create a message, firstly create a new fields object. The following example adds a single field. Note that the field label strings are passed in:
  MQeFieldsHndl hMsg;  
  
  display("Creating a new message\n"); 
  rc = mqeFields_new(&exceptBlock,&hMsg); 
  if ( MQERETURN_OK == rc ) {    
    rc = mqeFields_putInt32(hMsg,&exceptBlk,
          hFieldLabel,42); 
  } 

Terms of use | WebSphere software

(c) Copyright IBM Corporation 2004, 2005. All rights reserved.