If you clear the exit code condition then you will only get a warning in the log and no email will be sent. If you want to log the exit code as an info message stating number of records you can do change the job type to script and through the script run the process and then analyze the exit code. For example, if you choose JAL as a the job scripting language you can do something like the following OnErrorResumeNext Dim proc_id, number Dim exit_code, number RunAndWait "my program", "", 0, proc_id ProcessGetExitCode exit_code Dim log_message, string Dim handle_errors, boolean isLess exit_code, 0, handle_errors If handle_errors, ERROR_HANDLER isGreater exit_code, 1000, handle_errors If handle_errors, ERROR_HANDLER ConcatEx "Job processed ", exit_code, " records", log_message LogAddMessageEx, @V"job_id", "@V"job_name"", "INFO", log_message Exit ERROR_HANDLER: ConcatEx "Job error #", exit_code, log_message LogAddMessageEx, @V"job_id", "@V"job_name"", "ERROR", log_message Similar thing can be done using VBSCript job : I tried that and it had no effect. I still get the : messages in the log: Process finished with exit code 148. : Process exit code does not satisfy exit code condition.
|