sysVar.mqConditionCode

The system variable sysVar.mqConditionCode contains the completion code from an MQSeries API call following an add or scan I/O operation for an MQ record. Valid values and their related meanings are as follows:

00

OK

01

WARNING

02

FAILED

You can use sysVar.mqConditionCode in these ways:

The characteristics of sysVar.mqConditionCode are as follows:

Primitive type

NUM

Data length

2

Is value always restored after a converse?

Yes

Example

  add MQRecord;
  if (sysVar.mqConditionCode = 0)
       // continue
  else
       exit program;
  end

Related concepts
MQSeries support

Related reference
Exception handling
Exception handling and status (system words)
System words