Page 1 of 1

Question: launching unix script from IBM mainframe

Posted: Fri Oct 20, 2006 6:58 am
by dssalvatore
A very general question:

If I have a Unix script on a unix machine that calls dsjob to run a Datastage job, is it possible to launch the unix script from an IBM mainframe ?

The launch would happen after a bunch of mainframe sequential files have all been sent to the unix server.

Instead of having a unix process or datastage process wait for a final file, we would like the mainframe to actively kick off the datastage job.

What is the command or utility to call on the mainframe that would do this?

Thanks

Posted: Fri Oct 20, 2006 7:12 am
by kumar_s
Its not possible to execute dsjob in mainframe server, unless you have Datastage serever installed in that server. But you can explore some option, of triggering the script (which actually kicks off the datastage job) available in unix from Mainframe.

Posted: Fri Oct 20, 2006 7:31 am
by ArndW
I'm not 100% certain, but there are 3rd party tools that will let you do "rsh" or similar command from a host to UNIX box to let you trigger off jobs.

Posted: Sun Oct 22, 2006 10:06 am
by bmadhav
We do this using IBM's Tivoli work Scheduler (TWS) on the mainframe.
TWS know which AIX server to run the job on and we supply a JCL with the script location to TWS.

Posted: Sun Oct 22, 2006 5:21 pm
by vmcburney
You can put a WaitForFile stage into your sequence jobs and get them to wait for a status file to arrive. The status file tells the job that the source files have been fully transferred and can even include audit information such as file names, row counts and dates.