Running Shell Script and DS Routine in after job

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
shershahkhan
Participant
Posts: 64
Joined: Fri Jan 25, 2008 4:41 am

Running Shell Script and DS Routine in after job

Post by shershahkhan »

I have a Server job and i need to run a Shell script and DS routine after the job completes in a after job routine section; Is it possible to do this.
Details:
for shell script i can do this
ExecSH - SheelScriptName param1 param2

for Routine i can do this
RoutineName - Param1 param2


Is it possible to run both in the after routine part?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Yes but you have to write your own after-job subroutine that encapsulates both. Use DSExecute() to invoke the shell script.
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