Page 1 of 1

Aftrer Job Subroutine

Posted: Wed Apr 11, 2007 8:59 am
by shrey3a
Hi,

We have a requirment to move the input file after the job is finished.
I wrote the mv command in after job subroutine and it works fine.

its moving the file if it finished ok or with warning , My query is if the job aborts still it will rename move the file or not.

Thanks

Posted: Wed Apr 11, 2007 3:14 pm
by ray.wurlod
Probably not. When a server job aborts it halts at that point.

You can make sure that the file is not moved either by checking the "only execute on successful completion" check box where you identify the after-job subroutine in job properties, or by testing for the interim status of the job within the after-job subroutine.