You can use the custom keyword CmdValidExitCode <num> to set the exit code for successful jobs. The number
<num> is interpreted as the exit code for a successful job, and all other exit codes are interpreted as failure.
You can add CmdValidExitCode <num> to either the logical or physical Platform layer of the Command connector in the Edit Custom fields dialog box in Design Center.
See Using custom commands and keywords in the
Design Center documentation for more information about how to add custom commands and keywords.