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.
- CCOK
- (MQCC_OK on other platforms)
Successful completion.
The call completed fully; all output parameters have been set. The REASON parameter always has the value RCNONE in this case.
- CCWARN
- (MQCC_WARN on other platforms)
Warning (partial completion).
The call completed partially. Some output parameters might have been set in addition to the CMPCOD and REASON output parameters. The REASON parameter gives additional information about the partial completion.
- CCFAIL
- (MQCC_FAIL on other platforms)
Call failed.
The processing of the call did not complete, and the state of the queue manager is normally unchanged; exceptions are specifically noted. The CMPCOD and REASON output parameters have been set; other parameters are unchanged, except where noted.
The reason might be a fault in the application program, or it might be a result of some situation external to the program, for example the user's authority might have been revoked. The REASON parameter gives additional information about the error.
Parent topic: Return codes for IBM i (ILE RPG)