Difference between revisions of "API Error Code Structure (ApiErrC)"

From MidrangeWiki
Jump to: navigation, search
(The API Error Code data structure)
Line 16: Line 16:
 
       * http://publib.boulder.ibm.com/infocenter/iseries/v5r3/topic/apis/error.htm
 
       * http://publib.boulder.ibm.com/infocenter/iseries/v5r3/topic/apis/error.htm
 
       *========================================================================*
 
       *========================================================================*
       dcl-ds ApiErrC        Inz Qualified;
+
       dcl-ds ApiErrC        Qualified Inz;
 
         BytProv            Int(10:0) Inz(%size(ApiErrC));
 
         BytProv            Int(10:0) Inz(%size(ApiErrC));
 
         BytAvail            Int(10:0);
 
         BytAvail            Int(10:0);

Revision as of 17:55, 6 December 2018

Summary

The following is an RPG/LE free-form definition for the IBM API Error Code data structure.

The API Error Code data structure

      *========================================================================*
      * IBM API Error Code parameter -- ERRC0100 format
      *
      * NOTE: If supported, including this data structure as a parameter in your
      *       API calls is equivalent to using MONITOR to trap hard errors.  If
      *       an error occurs, it allows the API to pass back the error message
      *       id and any replacement data associated with that message id.
      *
      * DOCUMENTATION:
      * http://publib.boulder.ibm.com/infocenter/iseries/v5r3/topic/apis/error.htm
      *========================================================================*
       dcl-ds ApiErrC        Qualified Inz;
         BytProv             Int(10:0) Inz(%size(ApiErrC));
         BytAvail            Int(10:0);
         MsgId               Char(7);
         Reserved            Char(1);
         MsgData             Char(3000);
       end-ds;