Malik_Abdul_8942

Transfer job always has return code 0

Discussion created by Malik_Abdul_8942 on Jun 22, 2017

Question:

We have a transfer job that has a return code of 0 whether it's successful or aborts. This is causing issues because we have a post process email on completion with return code 0 and it's sending the email even though it aborts and has a return code 0.

Solution:

Add an output scan TRANSFER JOB

1kkteu9av0ds.jpg
Under action add FILTER.OUTPUT.JOBF.ENDED.EMPTY

jpetlgm6fwwe.jpg
Set it to TRUE

kfe9i1x4q0jd.jpg
Set the return code to any value you want. Example “500”

g1rajtqieap4.jpg
Set status text to any text you want. Example “Malik was here”

ib46tbc81w2w.jpg
Under execute, add CALL.MAIL

pvyiwrj101vb.jpg
Save
bkjacckt8l6l.jpg
Create a FILTER.OUTPUT.JOBF.ENDED.EMPTY

vrwv76xzuav0.jpg
Copy message from last report and added in the filter >report >contains

Example of last report message "U00011126 Files selected: '0'."

3wq39fanzhqf.jpg
Created CALL.MAIL 

i96fms8jwz9a.jpg

Add recipients

tzq0tgelt5p1.jpg

Attachments

Outcomes