Is it possible to call a job from another program?

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
bond88
Participant
Posts: 109
Joined: Mon Oct 15, 2012 10:05 am
Location: USA

Is it possible to call a job from another program?

Post by bond88 »

Hi,
Is it possible to run a job from an external program like calling a job from Java or from a webpage?

Thanks,
Bhanu
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Yes it is. You end up making a "system call" to invoke the "dsjob" command, or you can construct your own using the DataStage API.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
abhijain
Participant
Posts: 88
Joined: Wed Jun 13, 2007 1:10 pm
Location: India

Post by abhijain »

Yes, it is very much possible. using dsjob -run command.

Below are the possible options, where you can use "dsjob -run" command

1. You can invoke your Job2, in the Before/After Job Subroutine. ExecSH and write it.

2. Use can write script (Perl/Unix/Java) and make a system call.
Rgrds,
Abhi
bond88
Participant
Posts: 109
Joined: Mon Oct 15, 2012 10:05 am
Location: USA

Post by bond88 »

Thanks Abhijain,
Could you please provide some more details ? I have datastage on windows server.
Bhanu
Post Reply