Monday 17 October 2011

RPGLE - OS/400 API Error Data Structure


    RPGLE  - OS/400 API Error Data Structure

*********************************************
      *  OS/400 API Error Data Structure
      **********************************************
     **  API Error Return Code data structure
     D api_error       DS
     **  Bytes Provided
     D err_BProv                     10I 0 inz(%size(api_error))
     D*  Bytes Available
     D*    -- Test err_BAvail for > 0 then look at ERR_MSGID
     D*       for the CPF message ID that was issued.
     D err_BAvail                    10I 0 inz(0)
     D*  Exception Id
     D err_MsgID                      7A
     D*  Reserved
     D err_Resv1                      1A
     D*  extended error stuff, such as the message data fields
     D err_exterr                    64A
     D err_status      S              1A   INZ(*OFF)
     D err_flags       S             10I 0 INZ(0)

1 comment:

  1. Hi Bhabani, this is Sakti Rout from Cuttack, Odisha. I am working as AS400 developer. Nice to see such a informative site. Cheers. Feel proud that a fellow odiya is doing a great job. Keep it up. Email: rout.sakti86@gmail.com

    ReplyDelete