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:
- As the source or target in an assignment or move statement (also allowed in the "for count" of a move statement)
- As a variable in a logical expression
- As the argument in an exit or return statement
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