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
srekant
Premium Member
Premium Member
Posts: 85
Joined: Wed Jan 19, 2005 6:52 am
Location: Detroit

AFTER JOB ROUTINE

Post by srekant »

Hi,

In my after job routine i want to capture the status of my running job.
If the status code is any value other than 1 i want to abort the job.
How can i achieve this fuctionality in my after job routine.

Any help is appreciated
Sree
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

You cannot use an after-job routine to do this. If the job gets aborted for whatever reason the after-job subroutine will not get executed. You will need to call the DSGetJobInfo() routine from the sequence that started the job which you want to measure.
Post Reply