swirl
Guide to OmniMark 9   OmniMark home
docs home 
 
  Related Topics   Other Library Functions  
function  

mq-get-function-status

 
 


Declaration

define external function mq-get-function-status
         modifiable     integer     result-codes

Argument definitions

result-codes
is an integer shelf in which the CompCode and Reason for the last error will be put.


Purpose

Use mq-get-function-status to retrieve the IBM MQSeries error code when the "MQI0000" external exception is received.

Requirements

You must include the following line at the beginning of your OmniMark program:

  include "ommqi.xin"

Usage Notes

When an OmniMark program receives the "MQI0000" external exception, that indicates that a single IBM MQSeries error occurred during the ommqi function which was just called. mq-get-function-status can be called to retrieve the CompCode and Reason returned by the IBM MQSeries client.

The result-codes integer shelf is cleared, and then two values are placed onto it with the keys "CompCode" and "Reason".

The error codes are cleared upon the next ommqi call.

See OMMQI Error Handling for an example of how this function is used.

    Related Topics
 
Other Library Functions
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:38:10 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.