Previous Topic Next topic Print topic


Reason Codes

Reason codes describe the reason for a non-zero return code from the Public CASSPOOL API.

All reason codes are documented in the mfpubcas.cpy copybook, in a section labeled reason codes. For example:

 *=================================================================
      *    reason codes
      *=================================================================
           78  78-INVALID-FUNC               VALUE 001. 
           78  78-INVALID-KEY-ID             VALUE 002.   
           78  78-MFSYSCAT                   VALUE 003.
           78  78-BAD-OPEN-STATUS            VALUE 010.
           78  78-BAD-OPIO-STATUS            VALUE 011.
           78  78-BAD-CLOS-STATUS            VALUE 012.
           78  78-BAD-GN-STATUS              VALUE 013.
           78  78-BAD-GP-STATUS              VALUE 014.
           78  78-BAD-GU-STATUS              VALUE 015.
           78  78-BAD-REPL-STATUS            VALUE 016.
           78  78-BAD-STNGT-STATUS           VALUE 017.
           78  78-BAD-STNLT-STATUS           VALUE 018.
           78  78-EOF                        VALUE 019.
           78  78-DUP-KEY                    VALUE 020.
           78  78-NOT-YET-SUPORTED           VALUE 021.

Match the return code value to that of a 78-level field reason code in the copybook. The field name provides the reason for the code.

Previous Topic Next topic Print topic