Return and reason codes for the COMMAND request

You can use this table to search for reason and return codes for the DBRC COMMAND request. Each code is accompanied by the code type and an explanation of the code.

Table 1. DSPAPI FUNC=COMMAND return and reason codes
Code type Return code Reason code Meaning
  X'00000000' X'00000000' Request completed successfully. The DBRC command completed with return code 0.
Partial success X'00000004' X'C3000001' The DBRC command completed with a non-zero return code.
Severe error X'0000000C' X'C3000001' The LIST command is not allowed. Use the Query function.
  X'0000000C' X'C9000001' Invalid TOKEN. The TOKEN block passed is not recognized as a TOKEN created by a FUNC=STARTDBRC call.
  X'0000000C' X'C900000A' The TCB address is not the same as the TCB address under which the STARTDBRC service was issued.
Storage error X'00000028' X'C3000001' Error obtaining storage for a Command block.
Parameter error X'00000030' X'C3000001' Missing or invalid COMMAND parameter.
  X'00000030' X'C3000002' Invalid command length. Must be greater than zero.
  X'00000030' X'C3000003' Missing or invalid OUTPUT parameter
  X'00000030' X'C3000004' Invalid BUFFERLENGTH value. Must be >= 0 and <= 32760.
  X'00000030' X'C9000001' The function (FUNC) specified in the parameter list is invalid.
  X'00000030' X'C9000002' Invalid TOKEN address. The address of the field containing the API TOKEN failed validity checking. The address specifies storage not owned by the calling program.
  X'00000030' X'C9000003' Invalid RETCODE address. The address of the field containing the API RETCODE failed validity checking. The address specifies storage not owned by the calling program.
  X'00000030' X'C9000004' Invalid RSNCODE address. The address of the field containing the API RSNCODE failed validity checking. The address specifies storage not owned by the calling program.
  X'00000030' X'C9000005' Invalid OUTPUT address. The address of the field containing the API OUTPUT failed validity checking. The address specifies storage not owned by the calling program.
  X'00000030' X'C900000A' An incorrect VERSION value was specified for the requested function (FUNC).
  X'00000030' X'C9000019' Invalid COMMAND address. The address of the field containing the API COMMAND failed validity checking. The address specifies storage not owned by the calling program.