Return codes for IBM i (ILE RPG)
This information describes the return codes associated with the MQI and MQAI.
The return codes associated with:- Programmable Command Format (PCF) commands are listed in Programmable command formats reference.
- C++ calls are listed in Use C++.
For each call, a completion code and a reason code are returned by the queue manager or by an exit routine, to indicate the success or failure of the call.
Applications must not depend upon errors being checked for in a specific order, except where specifically noted. If more than one completion code or reason code could arise from a call, the particular error reported depends on the implementation.
- Completion codes for IBM i (ILE RPG)
The completion code parameter (CMPCOD) allows the caller to see quickly whether the call completed successfully, completed partially, or failed. - Reason codes for IBM i (ILE RPG)
The reason code parameter (REASON) is a qualification to the completion code parameter (CMPCOD).
Parent topic: IBM i Application Programming Reference (ILE/RPG)