The
system variable VGVar.mqConditionCode contains the
completion code from an MQSeries® API call following an add or get
next 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 VGVar.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 VGVar.mqConditionCode are
as follows:
Primitive type
NUM
Data length
2
Is value always restored after a converse?
Yes
Example
add MQRecord;
if (VGVar.mqConditionCode == 0)
// continue
else
exit program;
end