Aftrer Job Subroutine

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
shrey3a
Premium Member
Premium Member
Posts: 234
Joined: Sun Nov 21, 2004 10:41 pm

Aftrer Job Subroutine

Post 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
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply