Serviceability APIs return codes

6000    CWBSV_INVALID_FILE_TYPE
          Unusable file type passed-in.
6001    CWBSV_INVALID_RECORD_TYPE
          Unusable record type passed-in.
6002    CWBSV_INVALID_EVENT_TYPE
          Unusable event type detected.
6003    CWBSV_NO_ERROR_MESSAGES
          No error messages associated with error handle.
6004    CWBSV_ATTRIBUTE_NOT_SET
          Attribute not set in current message.
6005    CWBSV_INVALID_MSG_CLASS
          Unusable message class passed-in.
6006    CWBSV_LOG_NOT_STARTED
          The requested log could not be started. 
Related reference
iSeries Access for Windows Serviceability APIs