PHP.nl

mqseries_begin

mqseries_begin

MQseries MQBEGIN

void **mqseries_begin** resource $hconn array $beginOptions resource $compCode resource $reason

The

(MQBEGIN) call begins a unit of work that is coordinated by the queue manager, and that may involve external resource managers. mqseries_begin

Using

starts the unit of work. Either

or

ends the unit of work. mqseries_begin``mqseries_back``mqseries_cmit

hConnConnection handle.

This handle represents the connection to the queue manager.

compCodeCompletion code.

reasonReason code qualifying the compCode.

return.void

**Voorbeeld:

example

**

<?php
    $mqbo = array();
    mqseries_begin( $conn,
                    $mqbo,
                    $comp_code,
                    $reason);
    if ($comp_code !== MQSERIES_MQCC_OK) {
        /* reason code 2121 is a warning for more information see MQSeries reference manual.*/
        if ($reason !== 2121) {
            printf("CompCode:%d Reason:%d Text:%s<br>\n", $comp_code, $reason, mqseries_strerror($reason));
        }
    }
?>

Opmerking: > will not function when using MQSeries Client to connect to a Queueu Manager. mqseries_begin

mqseries_conn``mqseries_connx``mqseries_back``mqseries_cmit