Calling After 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
sourabhverma
Participant
Posts: 74
Joined: Thu Jan 05, 2006 2:07 am

Calling After job subroutine

Post by sourabhverma »

Hi All,

In a server job, I am loading a sequential file into oracle table. In that job i am also using after job subroutine which is calling a unix script but i want that subroutine to run only if that job is successfully finished.

Please let me know how to achieve that.
Thanks,
Sourabh Verma
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

You can build a job sequence as below:

Code: Select all

Job_Activity(Your current job) -------> Routine_Activity
Run your routine activity with appropriate trigger to the Job_Activity.

Whale.
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

What is the version of Datastage you are using? Enable the check box,

Code: Select all

Only run after-job subroutine on successful job completion.
that available in JobProperties.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

kumar_s wrote:What is the version of Datastage you are using? Enable the check box,

Code: Select all

Only run after-job subroutine on successful job completion.
that available in JobProperties.
Hmmm.....Good one. I missed that. Thanks !

Whale.
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
sourabhverma
Participant
Posts: 74
Joined: Thu Jan 05, 2006 2:07 am

Post by sourabhverma »

Thanks kumar_s for the suggestion, Now I am able to achieve my requirement.
Thanks,
Sourabh Verma
Post Reply