There is an
easy way too do that. I’ve created an example to make it easier to explain. I’ve
tested it in a v12 environment and it worked well. So far as I
know this feature is not available in v9, hopefully you have the option to go
to the latest version soon.
Please have a look:
1) Add the
external file at the “Output” tab of the job:
https://us.v-cdn.net/5019921/uploads/editor/s4/aw8krkxr8flo.png" width="542">
2) Set the variable
“&UC_CAUSE_NR#” to the current RunID in the process tab and let the job
fail, for test reason I uses “exit 1”:
https://us.v-cdn.net/5019921/uploads/editor/k0/4ce7567babku.png" width="595">
3) Define
the notification object – which sends the external file – in the “Runtime” tab
of the job. It will be executed whenever the jobs ends with a return code greater
than zero:
https://us.v-cdn.net/5019921/uploads/editor/e2/zn7ptzj13shc.png" width="561">
4) Make
sure that the “&UC_CAUSE_NR#” variable is specified in the notification
object and “Externals files” is selected:
https://us.v-cdn.net/5019921/uploads/editor/qq/baf1v0vh78e0.png" width="621">
Please find
the example object attached to this post as well.
Hope that helps.
KR, Josef