Undo command example - C

MQeFieldsHndl hMsg;
rc = mqeQueueManager_getMessage(hQMgr, &exceptBlock, 
                      &hMsg, hQMgrName, 
                        hQName, hFilter, 
                        NULL, confirmId);
/* if unsuccessful, undo the operation */
if(MQERETURN_OK != rc) {
    rc = mqeQueueManager_undo(hQMgr, &exceptBlock, 
                      hQMgrName, hQName, 
                      confirmId);
}

Terms of use | WebSphere software

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