Remote Command/Distributed Program Call APIs return codes

6000    CWBRC_INVALID_SYSTEM_HANDLE
          Invalid system handle.
6001    CWBRC_INVALID_PROGRAM
          Invalid program handle.
6002    CWBRC_SYSTEM_NAME
          System name is too long or cannot be converted.
6003    CWBRC_COMMAND_STRING
          Command string is too long or cannot be converted.
6004    CWBRC_PROGRAM_NAME
          Program name is too long or cannot be converted.
6005     CWBRC_LIBRARY_NAME
          Library name is too long or cannot be converted.
6006    CWBRC_INVALID_TYPE
          Invalid parameter type specified.
6007    CWBRC_INVALID_PARM_LENGTH
          Invalid parameter length.
6008    CWBRC_INVALID_PARM
          Invalid parameter specified.
6009    CWBRC_TOO_MANY_PARMS
          Attempt to add too many parameters to a program.
6010    CWBRC_INDEX_RANGE_ERROR
          Index is out of range for this program.
6011    CWBRC_REJECTED_USER_EXIT
          Command rejected by user exit program.
6012    CWBRC_USER_EXIT_ERROR
          Error in user exit program.
6013    CWBRC_COMMAND_FAILED
          Command failed.
6014    CWBRC_PROGRAM_NOT_FOUND
          Program not found or could not be accessed.
6015    CWBRC_PROGRAM_ERROR
          Error occurred when calling the program.
6016    CWBRC_COMMAND_TOO_LONG
          Command string is too long.
6099    CWBRC_UNEXPECTED_ERROR
          Unexpected error.
Related reference
iSeries Access for Windows Remote Command/Distributed Program Call APIs