Call job on a different server to run from sequence

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
Juls
Participant
Posts: 51
Joined: Tue Sep 14, 2004 9:17 am

Call job on a different server to run from sequence

Post by Juls »

Hi,

I am sure someone has done it before.
I need to call a sequence job located on server2 from a sequence job located on server1. I realize it can be done somehow using a command stage and call a batch file that has a command line in it for the job from server2.
I looked at dsjob command but didn't find anything that will set the server to use.
What is the right command to use?
Thanks,
Juls
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Juls, the dsjob command lets you specify server, userid and password to do any of the actions on a remote machine. Please look at page 19-140 of the Server Job Developer's Guide for more information.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

To do this from a job sequence on one server to run on a separate server you could run dsjob from an Execute Command activity. You only need to specify the foreign server name and authentication information once.
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