"We have an issue during a Unix JOBS execution. The script executed by the job is returning an error code 1, but the Job is ending OK.
Is it normal ? If yes, how can I pass the error code of the script to the Job status ?"
Here is how the Unix job has been configured:
<Please see attached file for image>

The jbu_test.sh is a simple script which only performs an "exit 1".
When we run it, the job is returning a ENDED_OK status:
<Please see attached file for image>

And if we check the job report, we can see that the script is returning an error 1:
<Please see attached file for image>