Communications APIs return codes

6001    CWBCO_END_OF_LIST
          The end of system list has been reached. No system name was returned.
6002    CWBCO_DEFAULT_SYSTEM_NOT_DEFINED
          The setting for the default system has not been defined.
6003    CWBCO_DEFAULT_SYSTEM_NOT_CONFIGURED
          The default system is defined, but no connection to it is
          configured.
6004    CWBCO_SYSTEM_NOT_CONNECTED
          The specified system is not currently connected in the current process.
6005    CWBCO_SYSTEM_NOT_CONFIGURED
          The specified system is not currently configured.
6007    CWBCO_INTERNAL_ERROR
          Internal error.
6008    CWBCO_NO_SUCH_ENVIRONMENT
          The specified environment does not exist.
Related reference
iSeries Access for Windows Communications and Security APIs