After Job routine

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

After Job routine

Post by shrey3a »

Hi,

I checked the checkbox only run after job subroutine after successful completition of Job. If the job finished with warning then will my After job subroutine will execute.

We need to execute the after job subroutine even if the job finished with warning but not if job aborts.

Thanks
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

:idea: Why dont you test it out and let us know.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
shrey3a
Premium Member
Premium Member
Posts: 234
Joined: Sun Nov 21, 2004 10:41 pm

Post by shrey3a »

If you check the box (after succesful completition of job run the after job subroutine).....and if your job finishes with warnings it executes the command for after job subroutine.

Lil confusing as I thought succesful completition means clean run....but works for me :-)

Thanks....

DSguru2B wrote::idea: Why dont you test it out and let us know.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

In datastage, jobstatus 1 (Finished) and 2 (finished with warnings) is considered successful and hence the behaviour.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply