/*
 * Return the reason code for the last MQ operation
 *
 * Returns => FixNum
 * * For a complete list of reason codes, please see WMQ Constants or
 *   the WebSphere MQ documentation for Reason Codes
 *
 * Note
 * * The list of Reason Codes varies depending on the version of WebSphere MQ
 *   and the operating system on which Ruby WMQ was compiled
 */
VALUE QueueManager_reason_code(VALUE self)
{
    PQUEUE_MANAGER pqm;
    Data_Get_Struct(self, QUEUE_MANAGER, pqm);
    return LONG2NUM(pqm->reason_code);
}