Question: launching unix script from IBM mainframe

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
dssalvatore
Participant
Posts: 1
Joined: Thu Oct 19, 2006 12:06 pm

Question: launching unix script from IBM mainframe

Post 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
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post 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.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post 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.
bmadhav
Charter Member
Charter Member
Posts: 50
Joined: Wed May 12, 2004 1:16 pm

Post 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.
vmcburney
Participant
Posts: 3593
Joined: Thu Jan 23, 2003 5:25 pm
Location: Australia, Melbourne
Contact:

Post 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.
Post Reply